marinofaggiana 6 سال پیش
والد
کامیت
88ecf5b8c3
1فایلهای تغییر یافته به همراه6 افزوده شده و 7 حذف شده
  1. 6 7
      iOSClient/AppDelegate.m

+ 6 - 7
iOSClient/AppDelegate.m

@@ -527,13 +527,14 @@ PKPushRegistry *pushRegistry;
     
     completionHandler(fetchResult);
 }
-*/
+
 
 #pragma FIREBASE
 
+
 - (void)messaging:(FIRMessaging *)messaging didReceiveRegistrationToken:(NSString *)fcmToken
 {
-    /*
+
     // test
     if (self.activeAccount.length == 0 || self.maintenanceMode)
         return;
@@ -549,9 +550,9 @@ PKPushRegistry *pushRegistry;
             [self subscribingNextcloudServerPushNotification:self.activeAccount url:self.activeUrl token:fcmToken];
         }
     }
-    */
 }
-
+*/
+ 
 #pragma --------------------------------------------------------------------------------------------
 #pragma mark ===== PushKit Delegate =====
 #pragma --------------------------------------------------------------------------------------------
@@ -598,9 +599,7 @@ PKPushRegistry *pushRegistry;
                         content.title = @"Nextcloud Talk";
                     } else {
                         content.title = app.capitalizedString;
-                    }
-                    content.title = [NSString stringWithFormat:@"%@ (%@)", content.title, result.account];
-                    
+                    }                    
                     if (subject) {
                         content.body = subject;
                     } else {