Explorar o código

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 %!s(int64=5) %!d(string=hai) anos
pai
achega
be25bfebcb
Modificáronse 1 ficheiros con 1 adicións e 7 borrados
  1. 1 7
      iOSClient/AppDelegate.m

+ 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 {