mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 00:08:35 +00:00
Fix stale call preview state by finishing when leaving.
This commit is contained in:
parent
6448b84430
commit
8dbc721c08
@ -126,6 +126,11 @@ public class WebRtcCallActivity extends AppCompatActivity implements SafetyNumbe
|
|||||||
if (!isInPipMode()) {
|
if (!isInPipMode()) {
|
||||||
EventBus.getDefault().unregister(this);
|
EventBus.getDefault().unregister(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CallParticipantsState state = viewModel.getCallParticipantsState().getValue();
|
||||||
|
if (state != null && state.getCallState() == WebRtcViewModel.State.CALL_PRE_JOIN) {
|
||||||
|
finish();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user