isChatMuted static method
Checks if a chat is muted for the given JID.
Returns a Future that completes with a boolean value indicating whether the chat is muted.
The jid
parameter specifies the JID of the chat to check.
It must not be null.
Example:
bool? muted = await Mirrorfly.isChatMuted(jid: 'example@domain.com');
if (muted == true) {
print('The chat is muted.');
} else if (muted == false) {
print('The chat is not muted.');
}
Implementation
static Future<bool?> isChatMuted({required String jid}) {
return FlyChatFlutterPlatform.instance.isMuted(jid);
}