Fixes #3135 - Ignore multiple call notify pushes for the same room

This commit is contained in:
Stefan Ceriu
2024-08-08 14:02:14 +03:00
committed by Stefan Ceriu
parent 7818fa626a
commit 398442ff12
@@ -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