소스 검색

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