@capgo/capacitor-stream-call 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -773,6 +773,9 @@ public class StreamCallPlugin: CAPPlugin, CAPBridgedPlugin {
773
773
  Task { @MainActor in
774
774
  self.callViewModel = CallViewModel(participantsLayout: .grid)
775
775
  self.callViewModel?.participantAutoLeavePolicy = LastParticipantAutoLeavePolicy()
776
+
777
+ // Setup subscriptions for new StreamVideo instance
778
+ self.setupActiveCallSubscription()
776
779
  }
777
780
  }
778
781
  }
@@ -780,9 +783,7 @@ public class StreamCallPlugin: CAPPlugin, CAPBridgedPlugin {
780
783
  state = .initialized
781
784
  callKitAdapter.streamVideo = self.streamVideo
782
785
  callKitAdapter.availabilityPolicy = .always
783
-
784
- // Setup subscriptions for new StreamVideo instance
785
- setupActiveCallSubscription()
786
+
786
787
  setupTokenSubscription()
787
788
 
788
789
  // Register for incoming calls
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-stream-call",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "Uses the https://getstream.io/ SDK to implement calling in Capacitor",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",