Chat iOS v4
Chat iOS
Chat
iOS
Home
/
Chat
/
iOS
/
User
This is the new Docs for Chat SDK v4 for iOS. To see the previous Docs, click here.
Operators of an open or group channel can restrict selected users from sending messages to the channel using the mute feature. A muted user remains in the channel and is allowed to view the messages but they can't send any messages to the channel until the operators unmute them. Operators can mute and unmute users using the following code.
Note: Instead of the
muteUser(_:seconds:description:completionHandler:)
andunmuteUser(_:completionHandler:)
methods, you can also usemuteUser(userId:seconds:description:completionHandler:)
andunmuteUser(userId:completionHandler:)
, as they perform the same action.