ソースを参照

add return value in DcContext's deleteContact

cyberta 5 年 前
コミット
c6d097e5dc
1 ファイル変更2 行追加2 行削除
  1. 2 2
      deltachat-ios/DC/Wrapper.swift

+ 2 - 2
deltachat-ios/DC/Wrapper.swift

@@ -13,8 +13,8 @@ class DcContext {
         dc_context_unref(contextPointer)
     }
 
-    func deleteContact(contactId: Int) {
-        dc_delete_contact(self.contextPointer, UInt32(contactId))
+    func deleteContact(contactId: Int) -> Bool {
+        return dc_delete_contact(self.contextPointer, UInt32(contactId)) == 1
     }
 
     func getChatlist(flags: Int32, queryString: String?, queryId: Int) -> DcChatlist {