updateChatMuteStatus static method

dynamic updateChatMuteStatus({
  1. required String jid,
  2. required bool muteStatus,
})

Updates the mute status of a chat identified by its JID.

This method is used to update the mute status of a chat identified by its JID.

The jid parameter specifies the JID of the chat to be updated.

The muteStatus parameter indicates whether the chat should be muted or unmuted. If set to true, the chat will be muted. If set to false, the chat will be unmuted.

Returns a Future<void> that completes when the mute status update is performed successfully.

Example usage:

await Mirrorfly.updateChatMuteStatus(jid: 'example@domain.com', muteStatus: true);

Implementation

static updateChatMuteStatus({required String jid, required bool muteStatus}) {
  return FlyChatFlutterPlatform.instance
      .updateChatMuteStatus(jid, muteStatus);
}