Skip to content

Handle cancelled call from dead #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

NIyerAD
Copy link

@NIyerAD NIyerAD commented Apr 26, 2021

Fixes part of issue react-native-webrtc#332, specifically when the phone is not locked and a call is remotely cancelled.

@NIyerAD NIyerAD requested a review from danwhite-ipc April 26, 2021 08:27
if (callEndedFromDead) {
// If the call was ended/cancelled from a killed state, we need to end the call connection
Connection conn = VoiceConnectionService.getConnection(deadUUID);
conn.onDisconnect();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a null check on conn

return;
}

this.reactContext.getJSModule(RCTDeviceEventEmitter.class).emit(eventName, params);
deadUUID = null;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move these two lines into callEndedFromDead if statement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants