@qusaieilouti99/call-manager 0.1.154 → 0.1.155

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.
@@ -62,7 +62,7 @@ class CallEngine {
62
62
 
63
63
  // MARK: Incoming
64
64
 
65
- func reportIncomingCall(callId: String,
65
+ func reportIncomingCall(callId: String,
66
66
  callType: String,
67
67
  displayName: String,
68
68
  pictureUrl: String? = nil,
@@ -75,8 +75,7 @@ class CallEngine {
75
75
  }
76
76
 
77
77
  // collision
78
- if let inc = activeCalls.values.first(where: { $0.state == .incoming }),
79
- inc.callId != callId
78
+ if let inc = activeCalls.values.first(where: { $0.state == .incoming })
80
79
  {
81
80
  logger.warning("incoming collision → reject \(callId)")
82
81
  emitEvent(.callRejected, data: ["callId": callId, "reason": "Another incoming exists"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qusaieilouti99/call-manager",
3
- "version": "0.1.154",
3
+ "version": "0.1.155",
4
4
  "description": "Call manager",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",