Fix bug of video showing on next call after cancel pre-join.

Fixes #10083
This commit is contained in:
Cody Henthorne
2020-10-13 14:53:12 -04:00
committed by Greyson Parrelli
parent babe1833bb
commit 322c139c26
2 changed files with 11 additions and 5 deletions

View File

@@ -506,7 +506,10 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
private void handleCancelPreJoinCall() {
cleanupVideo();
preJoinPeer = null;
enableVideoOnCreate = false;
preJoinPeer = null;
EventBus.getDefault().removeStickyEvent(WebRtcViewModel.class);
}
private void handleOutgoingCall(Intent intent) {