unMuteMembers method

Future<void> unMuteMembers(
  1. String groupId,
  2. List<String> members
)

Unmutes group members. Only the group owner and admins can call this method.

Param groupId The group ID. Param members The list of members to be unmuted.

Returns None.

Throws Exception description, see ChatError.

Implementation

Future<void> unMuteMembers(
  String groupId,
  List<String> members,
) async {
  try {
    Map req = {'groupId': groupId, 'members': members};
    Map result = await platform_interface.Client.instance.groupManager
        .callNativeMethod(ChatMethodKeys.unMuteMembers, req);
    ChatError.hasErrorFromResult(result);
  } catch (e) {
    rethrow;
  }
}