blockGroup method
- String groupId
Blocks group messages. The server will no longer send messages from this group to the user. The group owner cannot block group messages.
Param groupId The ID of the group to block.
Returns None.
Throws Exception description, see ChatError.
Implementation
Future<void> blockGroup(String groupId) async {
try {
Map req = {'groupId': groupId};
Map result = await platform_interface.Client.instance.groupManager
.callNativeMethod(ChatMethodKeys.blockGroup, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}