removeReaction method
删除 Reaction。
Param messageId 添加了该 Reaction 的消息 ID。
Param reaction 要删除的 Reaction。
Throws 如果有异常会在此抛出,包括错误码和错误信息,详见 ChatError。
Implementation
Future<void> removeReaction({
required String messageId,
required String reaction,
}) async {
try {
Map req = {"reaction": reaction, "msgId": messageId};
Map result = await platform_interface.Client.instance.chatManager
.callNativeMethod(ChatMethodKeys.removeReaction, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}