diff --git a/src/d2m/actions/create-room.js b/src/d2m/actions/create-room.js index 7f110ad..a6230b2 100644 --- a/src/d2m/actions/create-room.js +++ b/src/d2m/actions/create-room.js @@ -163,6 +163,7 @@ async function channelToKState(channel, guild, di) { events_default: everyoneCanSend ? 0 : READ_ONLY_ROOM_EVENTS_DEFAULT_POWER, events: { "m.reaction": 0, + "org.matrix.msc3381.poll.response": 0, "m.room.redaction": 0, // only affects redactions of own events, required to be able to un-react ...pollStartPowerLevel }, diff --git a/src/d2m/actions/create-room.test.js b/src/d2m/actions/create-room.test.js index c9e098b..fec5c55 100644 --- a/src/d2m/actions/create-room.test.js +++ b/src/d2m/actions/create-room.test.js @@ -147,6 +147,7 @@ test("channel2room: read-only discord channel", async t => { events_default: 50, // <-- it should be read-only! events: { "m.reaction": 0, + "org.matrix.msc3381.poll.response": 0, "m.room.redaction": 0 }, notifications: { diff --git a/test/data.js b/test/data.js index 8b6e052..60e9bd8 100644 --- a/test/data.js +++ b/test/data.js @@ -144,6 +144,7 @@ module.exports = { events_default: 0, events: { "m.reaction": 0, + "org.matrix.msc3381.poll.response": 0, "m.room.redaction": 0 }, users: {