Inform about timed out incoming calls

Closes #6344
// FREEBIE
This commit is contained in:
Christian Ascheberg 2017-03-08 20:42:00 +01:00 committed by Moxie Marlinspike
parent 76c41a8295
commit 97c3e8fa3f

View File

@ -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();
}
}