diff --git a/ElementX/Sources/Services/ElementCall/ElementCallService.swift b/ElementX/Sources/Services/ElementCall/ElementCallService.swift index 43b84c596..e84ff2000 100644 --- a/ElementX/Sources/Services/ElementCall/ElementCallService.swift +++ b/ElementX/Sources/Services/ElementCall/ElementCallService.swift @@ -140,6 +140,11 @@ class ElementCallService: NSObject, ElementCallServiceProtocol, PKPushRegistryDe return } + guard ongoingCallID?.roomID != roomID else { + MXLog.warning("Call already ongoing for room \(roomID), ignoring incoming push") + return + } + let callID = CallID(callKitID: UUID(), roomID: roomID) incomingCallID = callID