fix(mattermost): harden react remove flag parsing

This commit is contained in:
Peter Steinberger
2026-02-17 02:55:46 +01:00
parent d6226355e6
commit afa5533253
3 changed files with 109 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ const mattermostMessageActions: ChannelMessageActionAdapter = {
throw new Error("Mattermost react requires emoji");
}
const remove = Boolean((params as any)?.remove);
const remove = (params as any)?.remove === true;
if (remove) {
const result = await removeMattermostReaction({
cfg,