diff --git a/docusaurus/docs/iOS/06-advanced/03-callkit-integration.mdx b/docusaurus/docs/iOS/06-advanced/03-callkit-integration.mdx index a836fe184..0e5944ef1 100644 --- a/docusaurus/docs/iOS/06-advanced/03-callkit-integration.mdx +++ b/docusaurus/docs/iOS/06-advanced/03-callkit-integration.mdx @@ -175,7 +175,7 @@ var voIPTokenObservationCancellable: AnyCancellable? voIPTokenObservationCancellable = callKitPushNotificationAdapter.$deviceToken.sink { [streamVideo] updatedDeviceToken in Task { if let lastVoIPToken { - try await streamVideo.deleteDevice(id: updatedDeviceToken) + try await streamVideo.deleteDevice(id: lastVoIPToken) } try await streamVideo.setVoipDevice(id: updatedDeviceToken) lastVoIPToken = updatedDeviceToken