Ignore “open with Signal” if there is an ongoing call.

// FREEBIE
pull/1/head
Matthew Chen 7 years ago
parent c4e90089d5
commit c08e6e0fc6

@ -265,6 +265,12 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
DDLogWarn(@"Application opened with an unknown URL action: %@", url.host);
}
} else if ([url.scheme.lowercaseString isEqualToString:@"file"]) {
if ([Environment getCurrent].callService.call != nil) {
DDLogWarn(@"%@ ignoring 'open with Signal' due to ongoing WebRTC call.", self.tag);
return NO;
}
NSString *filename = url.lastPathComponent;
if ([filename stringByDeletingPathExtension].length < 1) {
DDLogError(@"Application opened with URL invalid filename: %@", url);

Loading…
Cancel
Save