We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f12c3b commit ebdd86bCopy full SHA for ebdd86b
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"];
@@ -352,7 +352,6 @@ - (void)call:(TVOCall *)call didFailToConnectWithError:(NSError *)error {
352
- (void)call:(TVOCall *)call didDisconnectWithError:(NSError *)error {
353
NSLog(@"Call disconnected with error: %@", error);
354
355
- [self performEndCallActionWithUUID:call.uuid];
356
[self callDisconnected:error];
357
}
358
0 commit comments