marinofaggiana 5 年之前
父节点
当前提交
681a3a4b2d
共有 2 个文件被更改,包括 5 次插入15 次删除
  1. 5 12
      iOSClient/AppDelegate.m
  2. 0 3
      iOSClient/Supporting Files/en.lproj/Localizable.strings

+ 5 - 12
iOSClient/AppDelegate.m

@@ -575,20 +575,13 @@ PKPushRegistry *pushRegistry;
                     
                     if ([app isEqualToString:@"spreed"]) {
                         content.title = @"Nextcloud Talk";
+                        if (results.count > 1) { content.subtitle = [NSString stringWithFormat:@"%@ (%@)", result.displayName, domain]; }
+                        if (subject) { content.body = subject; }
                     } else {
-                        content.title = NSLocalizedString(app.capitalizedString, nil);
-                    }
-                    if (results.count == 1) {
-                        content.title = content.title;
-                    } else {
-                        content.title = content.title;
-                        content.subtitle = [NSString stringWithFormat:@"%@ (%@)", result.displayName, domain];
-                    }
-                    if (subject) {
-                        content.body = subject;
-                    } else {
-                        content.body = @"Nextcloud notification";
+                        if (results.count > 1) { content.title = [NSString stringWithFormat:@"%@ (%@)", result.displayName, domain]; }
+                        if (subject) { content.body = subject; }
                     }
+                    
                     content.sound = [UNNotificationSound defaultSound];
 
                     /*

+ 0 - 3
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -761,8 +761,5 @@
 "_voice_memo_filename_"     = "voice memo";
 "_voice_memo_title_"        = "Upload voice memo";
 
-// Dictionary App push Notification
-"Suspicious_Login"          = "Suspicious Login";
-"Admin_Notifications"       = "Notification";