فهرست منبع

add isMuted to DcChat wrapper

cyberta 5 سال پیش
والد
کامیت
f27ec11008
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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)))
     }