فهرست منبع

avoid warning about implicit conversion of String? to Any

B. Petersen 6 سال پیش
والد
کامیت
1b779a37e8
2فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 0 2
      deltachat-ios/Controller/AccountSetupController.swift
  2. 2 2
      deltachat-ios/DC/events.swift

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

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

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

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