浏览代码

add deleteContact to DcContext class

cyberta 5 年之前
父节点
当前提交
dfb2149d0c
共有 1 个文件被更改,包括 4 次插入0 次删除
  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)