From 97c3e8fa3f6a3b8ed4cd9692081586073a590046 Mon Sep 17 00:00:00 2001 From: Christian Ascheberg Date: Wed, 8 Mar 2017 20:42:00 +0100 Subject: [PATCH] Inform about timed out incoming calls Closes #6344 // FREEBIE --- .../thoughtcrime/securesms/service/WebRtcCallService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/thoughtcrime/securesms/service/WebRtcCallService.java b/src/org/thoughtcrime/securesms/service/WebRtcCallService.java index 5fe91cd41a..909889f44a 100644 --- a/src/org/thoughtcrime/securesms/service/WebRtcCallService.java +++ b/src/org/thoughtcrime/securesms/service/WebRtcCallService.java @@ -619,6 +619,11 @@ public class WebRtcCallService extends Service implements InjectableType, PeerCo { Log.w(TAG, "Timing out call: " + this.callId); sendMessage(WebRtcViewModel.State.CALL_DISCONNECTED, this.recipient, localVideoEnabled, remoteVideoEnabled, bluetoothAvailable, microphoneEnabled); + + if (this.callState == CallState.STATE_ANSWERING || this.callState == CallState.STATE_LOCAL_RINGING) { + insertMissedCall(this.recipient, true); + } + terminate(); } }