Переглянути джерело

fix

Signed-off-by: Marino Faggiana <96728420+MarinoFaggianaAstraIridium@users.noreply.github.com>
Marino Faggiana 2 роки тому
батько
коміт
c720a33b96
1 змінених файлів з 2 додано та 7 видалено
  1. 2 7
      iOSClient/Settings/NCSettingsBundleHelper.swift

+ 2 - 7
iOSClient/Settings/NCSettingsBundleHelper.swift

@@ -39,13 +39,6 @@ class NCSettingsBundleHelper: NSObject {
         if UserDefaults.standard.bool(forKey: SettingsBundleKeys.Reset) {
             UserDefaults.standard.set(false, forKey: SettingsBundleKeys.Reset)
 
-            let content = UNMutableNotificationContent()
-            content.title = NCBrandOptions.shared.brand
-            content.body = NSLocalizedString("_reset_application_done_", comment: "")
-            let req = UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: nil)
-            let notificationCenter = UNUserNotificationCenter.current()
-            notificationCenter.add(req)
-
             URLCache.shared.memoryCapacity = 0
             URLCache.shared.diskCapacity = 0
 
@@ -56,6 +49,8 @@ class NCSettingsBundleHelper: NSObject {
 
             CCUtility.deleteAllChainStore()
             NCManageDatabase.shared.removeDB()
+
+            exit(0)
         }
     }
 }