Ver código fonte

add isMuted to DcChat wrapper

cyberta 5 anos atrás
pai
commit
f27ec11008
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      DcCore/DcCore/DC/Wrapper.swift

+ 4 - 0
DcCore/DcCore/DC/Wrapper.swift

@@ -724,6 +724,10 @@ public class DcChat {
         return dc_chat_is_verified(chatPointer) > 0
     }
 
+    public var isMuted: Bool {
+        return dc_chat_is_muted(chatPointer) != 0
+    }
+
     public var contactIds: [Int] {
         return DcUtils.copyAndFreeArray(inputArray: dc_get_chat_contacts(DcContext.shared.contextPointer, UInt32(id)))
     }