Fix stale call preview state by finishing when leaving.

fork-5.53.8
Cody Henthorne 2020-09-25 13:39:30 -04:00 zatwierdzone przez Alan Evans
rodzic 6448b84430
commit 8dbc721c08
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -126,6 +126,11 @@ public class WebRtcCallActivity extends AppCompatActivity implements SafetyNumbe
if (!isInPipMode()) {
EventBus.getDefault().unregister(this);
}
CallParticipantsState state = viewModel.getCallParticipantsState().getValue();
if (state != null && state.getCallState() == WebRtcViewModel.State.CALL_PRE_JOIN) {
finish();
}
}
@Override