From b35c20a06b51cf45183cddf084e9ff6ebcde0d7c Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Wed, 1 Feb 2017 18:51:49 -0500 Subject: [PATCH] Don't handle intents pre iOS10. // FREEBIE --- Signal/src/AppDelegate.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index 3ca909583..ca903eb09 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -338,7 +338,10 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; [[Environment getCurrent].callService handleCallKitStartVideo]; } else if ([userActivity.activityType isEqualToString:@"INStartAudioCallIntent"]) { - // TODO guard if less than iOS10. + if (!SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(10, 0)) { + DDLogError(@"%@ unexpectedly received INStartAudioCallIntent pre iOS10", self.tag); + return NO; + } DDLogInfo(@"%@ got start audio call intent", self.tag);