removeReaction method
~english Deletes a Reaction.
Param messageId
The message ID.
Param reaction
The Reaction content.
Throws A description of the exception. See ChatError. ~end
~chinese 删除 Reaction。
Param messageId
添加了该 Reaction 的消息 ID。
Param reaction
要删除的 Reaction。
Throws 如果有异常会在此抛出,包括错误码和错误信息,详见 ChatError。 ~end
Implementation
Future<void> removeReaction({
required String messageId,
required String reaction,
}) async {
Map req = {"reaction": reaction, "msgId": messageId};
Map result =
await ChatChannel.invokeMethod(ChatMethodKeys.removeReaction, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}