removeReaction method Null safety
Deletes a reaction.
This is a synchronous method and blocks the current thread.
Param messageId
The message ID.
Param reaction
The reaction content.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> removeReaction({
required String messageId,
required String reaction,
}) async {
Map req = {"reaction": reaction, "msgId": messageId};
Map result = await EMMethodChannel.ChatManager.invokeMethod(
ChatMethodKeys.removeReaction, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}