muteChannel

fun muteChannel(channelType: String, channelId: String, expiration: Int? = null): Call<Unit>

Mutes a channel for the current user. Messages added to the channel will not trigger push notifications, and will not change the unread count for the users that muted it. By default, mutes stay in place indefinitely until the user removes it. However, you can optionally set an expiration time. Triggers notification.channel_mutes_updated event.

Return

Executable async Call responsible for muting a channel.

Parameters

channelType

The channel type. ie messaging.

channelId

The channel id. ie 123.

expiration

The duration of mute in millis.

See also