diff --git a/d2m/actions/remove-reaction.js b/d2m/actions/remove-reaction.js index 632d5e2..b818867 100644 --- a/d2m/actions/remove-reaction.js +++ b/d2m/actions/remove-reaction.js @@ -43,7 +43,9 @@ async function removeReaction(data) { if (!lookingAtMatrixReaction && !wantToRemoveMatrixReaction) { // We are removing a Discord user's reaction, so we just make the sim user remove it. const mxid = select("sim", "mxid", "WHERE discord_id = ?").pluck().get(data.user_id) - await api.redactEvent(roomID, event.event_id, mxid) + if (mxid === event.sender) { + await api.redactEvent(roomID, event.event_id, mxid) + } } } }