Explorar o código

Merge pull request #1091 from deltachat/allow-unlabeled-device-chat

allow unlabeled device messages
cyBerta %!s(int64=4) %!d(string=hai) anos
pai
achega
407fe8cfc0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      DcCore/DcCore/DC/Wrapper.swift

+ 2 - 2
DcCore/DcCore/DC/Wrapper.swift

@@ -391,8 +391,8 @@ public class DcContext {
     }
 
     @discardableResult
-    public func addDeviceMessage(label: String, msg: DcMsg) -> Int {
-        return Int(dc_add_device_msg(contextPointer, label.cString(using: .utf8), msg.cptr))
+    public func addDeviceMessage(label: String?, msg: DcMsg) -> Int {
+        return Int(dc_add_device_msg(contextPointer, label, msg.cptr))
     }
 
     public func getProviderFromEmail(addr: String) -> DcProvider? {