Selaa lähdekoodia

DcChat isArchived in wrapper

nayooti 5 vuotta sitten
vanhempi
commit
ecda62bb28
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      deltachat-ios/DC/Wrapper.swift

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

@@ -471,6 +471,10 @@ class DcChat {
         return UIColor(netHex: Int(dc_chat_get_color(chatPointer)))
     }
 
+    var isArchived: Bool {
+        return Int(dc_chat_get_archived(chatPointer)) == 1
+    }
+
     var isUnpromoted: Bool {
         return Int(dc_chat_is_unpromoted(chatPointer)) != 0
     }