瀏覽代碼

streamline method naming

cyberta 4 年之前
父節點
當前提交
f95a74de82
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      deltachat-ios/Controller/SettingsController.swift
  2. 1 1
      deltachat-ios/Helper/NotificationManager.swift

+ 1 - 1
deltachat-ios/Controller/SettingsController.swift

@@ -324,7 +324,7 @@ internal final class SettingsViewController: UITableViewController, ProgressAler
                 appDelegate.registerForNotifications()
             }
         } else {
-            NotificationManager.deleteAllNotifications()
+            NotificationManager.removeAllNotifications()
         }
         UserDefaults.standard.synchronize()
         NotificationManager.updateApplicationIconBadge(reset: !sender.isOn)

+ 1 - 1
deltachat-ios/Helper/NotificationManager.swift

@@ -24,7 +24,7 @@ public class NotificationManager {
         }
     }
 
-    public static func deleteAllNotifications() {
+    public static func removeAllNotifications() {
         let nc = UNUserNotificationCenter.current()
         nc.removeAllDeliveredNotifications()
         nc.removeAllPendingNotificationRequests()