From cf12293d5ce73aff11f3f12c8ad3961e25bc057d Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Thu, 20 Aug 2026 12:57:35 +1200 Subject: [PATCH] Allow anyone to respond to polls --- src/d2m/actions/create-room.js | 1 + src/d2m/actions/create-room.test.js | 1 + test/data.js | 1 + 3 files changed, 3 insertions(+) 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: {