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_default: everyoneCanSend ? 0 : READ_ONLY_ROOM_EVENTS_DEFAULT_POWER,
|
||||||
events: {
|
events: {
|
||||||
"m.reaction": 0,
|
"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
|
"m.room.redaction": 0, // only affects redactions of own events, required to be able to un-react
|
||||||
...pollStartPowerLevel
|
...pollStartPowerLevel
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ test("channel2room: read-only discord channel", async t => {
|
|||||||
events_default: 50, // <-- it should be read-only!
|
events_default: 50, // <-- it should be read-only!
|
||||||
events: {
|
events: {
|
||||||
"m.reaction": 0,
|
"m.reaction": 0,
|
||||||
|
"org.matrix.msc3381.poll.response": 0,
|
||||||
"m.room.redaction": 0
|
"m.room.redaction": 0
|
||||||
},
|
},
|
||||||
notifications: {
|
notifications: {
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ module.exports = {
|
|||||||
events_default: 0,
|
events_default: 0,
|
||||||
events: {
|
events: {
|
||||||
"m.reaction": 0,
|
"m.reaction": 0,
|
||||||
|
"org.matrix.msc3381.poll.response": 0,
|
||||||
"m.room.redaction": 0
|
"m.room.redaction": 0
|
||||||
},
|
},
|
||||||
users: {
|
users: {
|
||||||
|
|||||||
Reference in New Issue
Block a user