Allow un-reacting in read-only rooms
This commit is contained in:
@@ -147,7 +147,8 @@ async function channelToKState(channel, guild, di) {
|
|||||||
"m.room.power_levels/": {
|
"m.room.power_levels/": {
|
||||||
events_default: everyoneCanSend ? 0 : 50,
|
events_default: everyoneCanSend ? 0 : 50,
|
||||||
events: {
|
events: {
|
||||||
"m.reaction": 0
|
"m.reaction": 0,
|
||||||
|
"m.room.redaction": 0 // only affects redactions of own events, required to be able to un-react
|
||||||
},
|
},
|
||||||
notifications: {
|
notifications: {
|
||||||
room: everyoneCanMentionEveryone ? 0 : 20
|
room: everyoneCanMentionEveryone ? 0 : 20
|
||||||
|
@@ -154,7 +154,8 @@ test("channel2room: read-only discord channel", async t => {
|
|||||||
"m.room.power_levels/": {
|
"m.room.power_levels/": {
|
||||||
events_default: 50, // <-- it should be read-only!
|
events_default: 50, // <-- it should be read-only!
|
||||||
events: {
|
events: {
|
||||||
"m.reaction": 0
|
"m.reaction": 0,
|
||||||
|
"m.room.redaction": 0
|
||||||
},
|
},
|
||||||
notifications: {
|
notifications: {
|
||||||
room: 20,
|
room: 20,
|
||||||
|
@@ -75,7 +75,8 @@ module.exports = {
|
|||||||
"m.room.power_levels/": {
|
"m.room.power_levels/": {
|
||||||
events_default: 0,
|
events_default: 0,
|
||||||
events: {
|
events: {
|
||||||
"m.reaction": 0
|
"m.reaction": 0,
|
||||||
|
"m.room.redaction": 0
|
||||||
},
|
},
|
||||||
users: {
|
users: {
|
||||||
"@test_auto_invite:example.org": 100
|
"@test_auto_invite:example.org": 100
|
||||||
@@ -3025,6 +3026,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
webhook_id: "1109360903096369153"
|
webhook_id: "1109360903096369153"
|
||||||
},
|
},
|
||||||
|
|
||||||
reply_with_only_embed: {
|
reply_with_only_embed: {
|
||||||
type: 19,
|
type: 19,
|
||||||
tts: false,
|
tts: false,
|
||||||
|
Reference in New Issue
Block a user