mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-03 05:03:04 +00:00
Close the call activity when leaving the call only if remotely triggered
If the local participant leaves the call the participant list will be updated with the new call flags. However, that does not necessarily mean that a moderator ended the call; the call could have been left too by the Android app due to a forced reconnection or a time out when starting the call. In those cases the call activity should be kept open, and only when the local participant left the call due to a remote action the call activity should be closed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
f94db44b4d
commit
fdbcc3b16d
@ -1798,7 +1798,7 @@ public class CallActivity extends CallBaseActivity {
|
||||
}
|
||||
} else {
|
||||
Log.d(TAG, " inCallFlag of currentSessionId: " + inCallFlag);
|
||||
if (inCallFlag == 0) {
|
||||
if (inCallFlag == 0 && !CallStatus.LEAVING.equals(currentCallStatus) && ApplicationWideCurrentRoomHolder.getInstance().isInCall()) {
|
||||
Log.d(TAG, "Most probably a moderator ended the call for all.");
|
||||
hangup(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user