logo
In-app Chat
SDK Error Codes
Powered Byspreading
On this page

Mute a conversation


Introduction

Mute a conversation: A user can mute any conversation, and when the ZIM SDK receives a message for the conversation, it does not send a push notification, and the total count of unread messages does not increase.

Procedure

To mute a conversation, call the setConversationNotificationStatus method with the conversationID parameter.

Sample code
// Mute notifications for specified conversations.
ZIM
    .getInstance()
    .setConversationNotificationStatus(
        ZIMConversationNotificationStatus.doNotDisturb,
        'conversationID',
        ZIMConversationType.group)
    .then((value) {})
    .catchError((onError) {});
1
Copied!

Previous

Manage unread message counts

Next

Delete conversation