Procházet zdrojové kódy

avoid warning about implicit conversion of String? to Any

B. Petersen před 6 roky
rodič
revize
1b779a37e8

+ 0 - 2
deltachat-ios/Controller/AccountSetupController.swift

@@ -451,7 +451,6 @@ class AccountSetupController: UITableViewController {
             if let ui = notification.userInfo {
             if let ui = notification.userInfo {
                 if ui["error"] as! Bool {
                 if ui["error"] as! Bool {
                     self.updateProgressHud(error: ui["errorMessage"] as? String)
                     self.updateProgressHud(error: ui["errorMessage"] as? String)
-                    // self.hudHandler.setHudError(ui["errorMessage"] as? String)
                 } else if ui["done"] as! Bool {
                 } else if ui["done"] as! Bool {
                     self.updateProgressHudSuccess(callback: self.handleLoginSuccess)
                     self.updateProgressHudSuccess(callback: self.handleLoginSuccess)
                 } else {
                 } else {
@@ -468,7 +467,6 @@ class AccountSetupController: UITableViewController {
             if let ui = notification.userInfo {
             if let ui = notification.userInfo {
                 if ui["error"] as! Bool {
                 if ui["error"] as! Bool {
                     self.updateProgressHud(error: ui["errorMessage"] as? String)
                     self.updateProgressHud(error: ui["errorMessage"] as? String)
-                    // self.hudHandler.setHudError(ui["errorMessage"] as? String)
                 } else if ui["done"] as! Bool {
                 } else if ui["done"] as! Bool {
                     self.updateProgressHudSuccess(callback: self.handleLoginSuccess)
                     self.updateProgressHudSuccess(callback: self.handleLoginSuccess)
                 } else {
                 } else {

+ 2 - 2
deltachat-ios/DC/events.swift

@@ -41,7 +41,7 @@ public func callbackSwift(event: CInt, data1: CUnsignedLong, data2: CUnsignedLon
                     "progress": Int(data1),
                     "progress": Int(data1),
                     "error": Int(data1) == 0,
                     "error": Int(data1) == 0,
                     "done": done,
                     "done": done,
-                    "errorMessage": AppDelegate.lastErrorDuringConfig,
+                    "errorMessage": AppDelegate.lastErrorDuringConfig as Any,
                 ]
                 ]
             )
             )
 
 
@@ -133,7 +133,7 @@ public func callbackSwift(event: CInt, data1: CUnsignedLong, data2: CUnsignedLon
                     "progress": Int(data1),
                     "progress": Int(data1),
                     "error": Int(data1) == 0,
                     "error": Int(data1) == 0,
                     "done": Int(data1) == 1000,
                     "done": Int(data1) == 1000,
-                    "errorMessage": AppDelegate.lastErrorDuringConfig,
+                    "errorMessage": AppDelegate.lastErrorDuringConfig as Any,
                 ]
                 ]
             )
             )
         }
         }