Pārlūkot izejas kodu

allow resetting config-values

B. Petersen 6 gadi atpakaļ
vecāks
revīzija
4db8b0d349
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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 {