diff --git a/src/d2m/actions/create-room.js b/src/d2m/actions/create-room.js index 0924631..19085c2 100644 --- a/src/d2m/actions/create-room.js +++ b/src/d2m/actions/create-room.js @@ -147,7 +147,8 @@ async function channelToKState(channel, guild, di) { "m.room.power_levels/": { events_default: everyoneCanSend ? 0 : 50, events: { - "m.reaction": 0 + "m.reaction": 0, + "m.room.redaction": 0 // only affects redactions of own events, required to be able to un-react }, notifications: { room: everyoneCanMentionEveryone ? 0 : 20 diff --git a/src/d2m/actions/create-room.test.js b/src/d2m/actions/create-room.test.js index 2f380bb..e653744 100644 --- a/src/d2m/actions/create-room.test.js +++ b/src/d2m/actions/create-room.test.js @@ -154,7 +154,8 @@ test("channel2room: read-only discord channel", async t => { "m.room.power_levels/": { events_default: 50, // <-- it should be read-only! events: { - "m.reaction": 0 + "m.reaction": 0, + "m.room.redaction": 0 }, notifications: { room: 20, diff --git a/test/data.js b/test/data.js index 1c44af5..01e49a4 100644 --- a/test/data.js +++ b/test/data.js @@ -75,7 +75,8 @@ module.exports = { "m.room.power_levels/": { events_default: 0, events: { - "m.reaction": 0 + "m.reaction": 0, + "m.room.redaction": 0 }, users: { "@test_auto_invite:example.org": 100 @@ -3025,6 +3026,7 @@ module.exports = { }, webhook_id: "1109360903096369153" }, + reply_with_only_embed: { type: 19, tts: false,