unblockGroup method

Future<void> unblockGroup(
  1. String groupId
)

Unblocks group messages.

Param groupId The ID of the group to unblock.

Returns None.

Throws Exception description, see ChatError.

Implementation

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