mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
The webrtc busy state could be idle, but system dialer connected
This commit is contained in:
parent
0ec1ae4ed3
commit
9c77ffc2a4
@ -602,6 +602,7 @@ public class WebRtcCallService extends Service implements InjectableType, PeerCo
|
|||||||
switch (callState) {
|
switch (callState) {
|
||||||
case STATE_DIALING:
|
case STATE_DIALING:
|
||||||
case STATE_REMOTE_RINGING: setCallInProgressNotification(TYPE_OUTGOING_RINGING, this.recipient); break;
|
case STATE_REMOTE_RINGING: setCallInProgressNotification(TYPE_OUTGOING_RINGING, this.recipient); break;
|
||||||
|
case STATE_IDLE:
|
||||||
case STATE_ANSWERING: setCallInProgressNotification(TYPE_INCOMING_CONNECTING, this.recipient); break;
|
case STATE_ANSWERING: setCallInProgressNotification(TYPE_INCOMING_CONNECTING, this.recipient); break;
|
||||||
case STATE_LOCAL_RINGING: setCallInProgressNotification(TYPE_INCOMING_RINGING, this.recipient); break;
|
case STATE_LOCAL_RINGING: setCallInProgressNotification(TYPE_INCOMING_RINGING, this.recipient); break;
|
||||||
case STATE_CONNECTED: setCallInProgressNotification(TYPE_ESTABLISHED, this.recipient); break;
|
case STATE_CONNECTED: setCallInProgressNotification(TYPE_ESTABLISHED, this.recipient); break;
|
||||||
@ -609,6 +610,10 @@ public class WebRtcCallService extends Service implements InjectableType, PeerCo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (callState == CallState.STATE_IDLE) {
|
||||||
|
stopForeground(true);
|
||||||
|
}
|
||||||
|
|
||||||
sendMessage(recipient, SignalServiceCallMessage.forBusy(new BusyMessage(callId)));
|
sendMessage(recipient, SignalServiceCallMessage.forBusy(new BusyMessage(callId)));
|
||||||
insertMissedCall(getRemoteRecipient(intent), false);
|
insertMissedCall(getRemoteRecipient(intent), false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user