Эх сурвалжийг харах

Do no try to delete notifications from the server when receiving a delete or delete-all push notification.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
Ivan Sein 5 жил өмнө
parent
commit
be25bfebcb

+ 1 - 7
iOSClient/AppDelegate.m

@@ -569,13 +569,7 @@ PKPushRegistry *pushRegistry;
 
                     if (delete || deleteAll) {
                         
-                        if (deleteAll) {
-                            notificationId = 0;
-                        }
-                        
-                        [[OCNetworking sharedManager] deletingServerNotification:result.url notificationId:notificationId completion:^(NSString *message, NSInteger errorCode) {
-                            NSLog(@"Deleting Server Notification error: %ld", (long)errorCode);
-                        }];
+                        // TODO: Delete notifications locally
                         
                     } else {