Selaa lähdekoodia

streamline method naming

cyberta 4 vuotta sitten
vanhempi
commit
f95a74de82

+ 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()