Browse Source

allow resetting config-values

B. Petersen 6 năm trước cách đây
mục cha
commit
4db8b0d349
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      deltachat-ios/DC/Wrapper.swift

+ 3 - 0
deltachat-ios/DC/Wrapper.swift

@@ -505,6 +505,9 @@ class MRConfig {
     if let v = value {
       dc_set_config(mailboxPointer, key, v)
     }
+    else {
+      dc_set_config(mailboxPointer, key, nil)
+    }
   }
 
   private class func getBool(_ key: String) -> Bool {