Mute Notification

Enable/Disable Global Mute Settings#

If you want to mute all notifications in the app, you can use the following method.

    ChatManager.updateMuteSettingStatus(muteStatus: Bool)
    ArgumentTypeDescription
    muteStatusBooltrue, if you want to mute notifications

    Mute user/Group#

    If you want to mute the notifications for the chat of a user or a group, you can utilise the below method.

      ChatManager.updateChatMuteStatus(jidList: [String], mute: Bool)
      ArgumentTypeDescription
      jidList[String]jid list of the chat user/ group
      muteBooltrue, 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.

        ChatManager.updateChatMuteStatus(jid: jid, muteStatus: muteStatus)
        ArgumentTypeDescription
        JIDStringjid of the chat user/ group
        MUTE_STATUSBooltrue, 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.