Prechádzať zdrojové kódy

add helper method to get blockedContactIds

cyberta 5 rokov pred
rodič
commit
e8f031fcf3
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      deltachat-ios/Helper/Utils.swift

+ 5 - 0
deltachat-ios/Helper/Utils.swift

@@ -8,6 +8,11 @@ struct Utils {
         return Utils.copyAndFreeArray(inputArray: cContacts)
     }
 
+    static func getBlockedContactIds() -> [Int] {
+        let cBlockedContacts = dc_get_blocked_contacts(mailboxPointer)
+        return Utils.copyAndFreeArray(inputArray: cBlockedContacts)
+    }
+
     static func getInitials(inputName: String) -> String {
         var nameParts = inputName.split(separator: " ")
         // this limits initials to max 2, otherwise just takes first letter to avoid messy badges