Explorar el Código

add deleteContact to DcContext class

cyberta hace 5 años
padre
commit
dfb2149d0c
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      deltachat-ios/DC/Wrapper.swift

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

@@ -13,6 +13,10 @@ class DcContext {
         dc_context_unref(contextPointer)
     }
 
+    func deleteContact(contactId: Int) {
+        dc_delete_contact(self.contextPointer, UInt32(contactId))
+    }
+
     func getChatlist(flags: Int32, queryString: String?, queryId: Int) -> DcChatlist {
         let chatlistPointer = dc_get_chatlist(contextPointer, flags, queryString, UInt32(queryId))
         let chatlist = DcChatlist(chatListPointer: chatlistPointer)