소스 검색

add dc_set_chat_mute_duration to DcContext Wrapper

cyberta 5 년 전
부모
커밋
4ecf497920
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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)