addMembersToChatRoomAllowList method
Adds members to the allowlist.
Only the chat room owner or admin can call this method.
Param roomId
The chat room ID.
Param members
The list of members to be added to the allow list.
Throws A description of the exception. See ChatError.
Implementation
Future<void> addMembersToChatRoomAllowList(
String roomId,
List<String> members,
) async {
Map req = {
"roomId": roomId,
"members": members,
};
Map result = await _channel.invokeMethod(
ChatMethodKeys.addMembersToChatRoomWhiteList,
req,
);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}