Mute Notification
#
OverviewMute notifications allow users to control their notification preferences. Users can enable or disable mute settings globally or for specific chats. This feature provides flexibility in managing interruptions.
#
Mute ChatTo Mute the chat use below method which disables the notification for the chat when the new messages are received or any action on chat.
Status | Description | Type | Required |
---|---|---|---|
TO_JIDS | Array of JID of the To User | Array String | true |
IS_MUTED | true for muting the chat, false for removing | Boolean | true |
Note: Please note that this method is triggered once the status 'success' is received from the server, indicating that the update was successful. At that point, the Mute Chat Listener method is called and receives the corresponding object values.
#
Get Mute StatusTo determine if a particular user is muted, use the method below. It returns the mute status of the specified user, if the user is muted return 1 else return 0.
Status | Description | Type | Required |
---|---|---|---|
TO_JID | JID of the To User | JID String | true |
#
Enable/Disable Global Mute SettingsUsers can enable or disable global mute settings using the below method.
Note: Please note that once the settings are updated, it's the responsibility of the foreground UI to determine whether or not to display the notification.