Преглед изворни кода

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 {