Allow anyone to respond to polls

This commit is contained in:
Cadence Ember
2026-08-20 12:58:59 +12:00
parent 2e84c71d96
commit cf12293d5c
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -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
},
+1
View File
@@ -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: {
+1
View File
@@ -144,6 +144,7 @@ module.exports = {
events_default: 0,
events: {
"m.reaction": 0,
"org.matrix.msc3381.poll.response": 0,
"m.room.redaction": 0
},
users: {