Push: Update code to follow API break

#2348
This commit is contained in:
manuroe
2019-07-16 14:42:25 +02:00
parent d984073bf9
commit a70bec46f1
2 changed files with 11 additions and 3 deletions
+10 -2
View File
@@ -2874,7 +2874,11 @@ SignOutAlertPresenterDelegate>
if (accountManager.pushDeviceToken)
{
[account setEnablePushKitNotifications:!account.isPushKitNotificationActive];
[account enablePushKitNotifications:!account.isPushKitNotificationActive success:^{
[self stopActivityIndicator];
} failure:^(NSError *error) {
[self stopActivityIndicator];
}];
}
else
{
@@ -2887,7 +2891,11 @@ SignOutAlertPresenterDelegate>
}
else
{
[account setEnablePushKitNotifications:YES];
[account enablePushKitNotifications:YES success:^{
[self stopActivityIndicator];
} failure:^(NSError *error) {
[self stopActivityIndicator];
}];
}
}];
}