Prechádzať zdrojové kódy

add return value in DcContext's deleteContact

cyberta 5 rokov pred
rodič
commit
c6d097e5dc
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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 {