removeUserFromBlockList method
- String userId
Removes the contact from the block ids.
Param userId The contact to be removed from the block list.
Throws A description of the exception. See ChatError.
Implementation
Future<void> removeUserFromBlockList(String userId) async {
try {
Map req = {'userId': userId};
Map result = await platform_interface.Client.instance.contactManager
.callNativeMethod(ChatMethodKeys.removeUserFromBlockList, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}