We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eab4ad0 commit 5816ec0Copy full SHA for 5816ec0
ios/RNTwilioVoice/RNTwilioVoice.m
@@ -99,7 +99,7 @@ - (void)dealloc {
99
device.proximityMonitoringEnabled = YES;
100
101
if (self.call && self.call.state == TVOCallStateConnected) {
102
- [self.call disconnect];
+ [self performEndCallActionWithUUID:self.call.uuid];
103
} else {
104
NSUUID *uuid = [NSUUID UUID];
105
NSString *handle = [params valueForKey:@"To"];
@@ -357,7 +357,6 @@ - (void)call:(TVOCall *)call didFailToConnectWithError:(NSError *)error {
357
- (void)call:(TVOCall *)call didDisconnectWithError:(NSError *)error {
358
NSLog(@"Call disconnected with error: %@", error);
359
360
- [self performEndCallActionWithUUID:call.uuid];
361
[self callDisconnected:error];
362
}
363
0 commit comments