|
|
@ -78,6 +78,7 @@ extension AppDelegate {
|
|
|
|
DispatchQueue.main.async {
|
|
|
|
DispatchQueue.main.async {
|
|
|
|
guard let call = AppEnvironment.shared.callManager.currentCall, message.uuid! == call.uuid else { return }
|
|
|
|
guard let call = AppEnvironment.shared.callManager.currentCall, message.uuid! == call.uuid else { return }
|
|
|
|
if message.sender! == getUserHexEncodedPublicKey() {
|
|
|
|
if message.sender! == getUserHexEncodedPublicKey() {
|
|
|
|
|
|
|
|
guard !call.hasStartedConnecting else { return }
|
|
|
|
self.dismissAllCallUI()
|
|
|
|
self.dismissAllCallUI()
|
|
|
|
AppEnvironment.shared.callManager.reportCurrentCallEnded(reason: .answeredElsewhere)
|
|
|
|
AppEnvironment.shared.callManager.reportCurrentCallEnded(reason: .answeredElsewhere)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|