From c08e6e0fc6a3cb19bb82923646b69d56e1015ea2 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 27 Apr 2017 09:39:45 -0400 Subject: [PATCH] =?UTF-8?q?Ignore=20=E2=80=9Copen=20with=20Signal=E2=80=9D?= =?UTF-8?q?=20if=20there=20is=20an=20ongoing=20call.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit // FREEBIE --- Signal/src/AppDelegate.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index fb3540edb..026d3d9da 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -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);