Allow anyone to respond to polls
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user