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/": {
|
||||
events_default: everyoneCanSend ? 0 : 50,
|
||||
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: {
|
||||
room: everyoneCanMentionEveryone ? 0 : 20
|
||||
|
@@ -154,7 +154,8 @@ test("channel2room: read-only discord channel", async t => {
|
||||
"m.room.power_levels/": {
|
||||
events_default: 50, // <-- it should be read-only!
|
||||
events: {
|
||||
"m.reaction": 0
|
||||
"m.reaction": 0,
|
||||
"m.room.redaction": 0
|
||||
},
|
||||
notifications: {
|
||||
room: 20,
|
||||
|
@@ -75,7 +75,8 @@ module.exports = {
|
||||
"m.room.power_levels/": {
|
||||
events_default: 0,
|
||||
events: {
|
||||
"m.reaction": 0
|
||||
"m.reaction": 0,
|
||||
"m.room.redaction": 0
|
||||
},
|
||||
users: {
|
||||
"@test_auto_invite:example.org": 100
|
||||
@@ -3025,6 +3026,7 @@ module.exports = {
|
||||
},
|
||||
webhook_id: "1109360903096369153"
|
||||
},
|
||||
|
||||
reply_with_only_embed: {
|
||||
type: 19,
|
||||
tts: false,
|
||||
|
Reference in New Issue
Block a user