From 37edce9a099680ddd32cdd6db749b3a07fefb6ff Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Wed, 16 Feb 2022 14:43:41 +1100 Subject: [PATCH] remove duplicated PN register/unregister --- Session/Meta/AppDelegate.m | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Session/Meta/AppDelegate.m b/Session/Meta/AppDelegate.m index 1f31d6604..5219167c1 100644 --- a/Session/Meta/AppDelegate.m +++ b/Session/Meta/AppDelegate.m @@ -584,12 +584,6 @@ static NSTimeInterval launchStartedAt; [self.pushRegistrationManager didReceiveVanillaPushToken:deviceToken]; OWSLogInfo(@"Registering for push notifications with token: %@.", deviceToken); - BOOL isUsingFullAPNs = [NSUserDefaults.standardUserDefaults boolForKey:@"isUsingFullAPNs"]; - if (isUsingFullAPNs) { - __unused AnyPromise *promise = [LKPushNotificationAPI registerWithToken:deviceToken hexEncodedPublicKey:self.tsAccountManager.localNumber isForcedUpdate:NO]; - } else { - __unused AnyPromise *promise = [LKPushNotificationAPI unregisterToken:deviceToken]; - } } - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error