Browse Source

add dc_set_chat_mute_duration to DcContext Wrapper

cyberta 5 years ago
parent
commit
4ecf497920
1 changed files with 4 additions and 0 deletions
  1. 4 0
      DcCore/DcCore/DC/Wrapper.swift

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

@@ -294,6 +294,10 @@ public class DcContext {
         dc_configure(contextPointer)
     }
 
+    public func setChatMuteDuration(chatId: Int, duration: Int) {
+        dc_set_chat_mute_duration(self.contextPointer, UInt32(chatId), Int64(duration))
+    }
+
     public func getConfig(_ key: String) -> String? {
         guard let cString = dc_get_config(self.contextPointer, key) else { return nil }
         let value = String(cString: cString)