Sfoglia il codice sorgente

add return value in DcContext's deleteContact

cyberta 5 anni fa
parent
commit
c6d097e5dc
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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 {