Преглед на файлове

add dc_remove_contact_from_chat to Wrapper

cyberta преди 5 години
родител
ревизия
4dc3ff36d2
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      deltachat-ios/DC/Wrapper.swift

+ 4 - 0
deltachat-ios/DC/Wrapper.swift

@@ -50,6 +50,10 @@ class DcContext {
         return dc_add_contact_to_chat(contextPointer, UInt32(chatId), UInt32(contactId)) == 1
         return dc_add_contact_to_chat(contextPointer, UInt32(chatId), UInt32(contactId)) == 1
     }
     }
 
 
+    func removeContactFromChat(chatId: Int, contactId: Int) -> Bool {
+        return dc_remove_contact_from_chat(contextPointer, UInt32(chatId), UInt32(contactId)) == 1
+    }
+
     func setChatName(chatId: Int, name: String) -> Bool {
     func setChatName(chatId: Int, name: String) -> Bool {
         return dc_set_chat_name(contextPointer, UInt32(chatId), name) == 1
         return dc_set_chat_name(contextPointer, UInt32(chatId), name) == 1
     }
     }