Mute Notification
#
Enable/Disable Global Mute SettingsIf you want to mute all notifications in the app, you can use the following method.
Argument | Type | Description |
---|---|---|
muteStatus | Bool | true , if you want to mute notifications |
#
Mute user/GroupIf you want to mute the notifications for the chat of a user or a group, you can utilise the below method.
Argument | Type | Description |
---|---|---|
jidList | [String] | jid list of the chat user/ group |
mute | Bool | true , if you want to mute notifications for the chat |
warning
The method ChatManager.updateChatMuteStatus(jid: jid, muteStatus: muteStatus) is deprecated; please use ChatManager.updateChatMuteStatus(jidList: [String], mute: Bool) instead.
Argument | Type | Description |
---|---|---|
JID | String | jid of the chat user/ group |
MUTE_STATUS | Bool | true , if you want to mute notifications for the chat |
Note: Mute-related events are observed through the MuteEventDelegate. For more information on handling mute settings updates, see the delegate details here.