Skip to content

Commit 4faa978

Browse files
committed
Define power levels to disable calls/reactions/redaction/stickers in PM
No one but the sender can see them because we cannot bridge them. Blocking them with PLs allows the clients to hide these features from their UI, so users do not mistakenly believe they will be received.
1 parent 646a9e5 commit 4faa978

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

spec/integ/pm.spec.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,12 @@ describe("IRC-to-Matrix PMing", () => {
284284
"m.room.canonical_alias": 100,
285285
"m.room.history_visibility": 100,
286286
"m.room.power_levels": 100,
287-
"m.room.encryption": 100
287+
"m.room.encryption": 100,
288+
"m.call.invite": 100,
289+
"m.call.candidate": 100,
290+
"m.reaction": 100,
291+
"m.room.redaction": 100,
292+
"m.sticker": 100,
288293
},
289294
invite: 100
290295
},

src/bridge/IrcHandler.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,15 @@ export class IrcHandler {
195195
"m.room.canonical_alias": 100,
196196
"m.room.history_visibility": 100,
197197
"m.room.power_levels": 100,
198-
"m.room.encryption": 100
198+
"m.room.encryption": 100,
199+
// Event types that we cannot translate to IRC;
200+
// we might as well block them with PLs so
201+
// Matrix clients can hide them from their UI.
202+
"m.call.invite": 100,
203+
"m.call.candidate": 100,
204+
"m.reaction": 100,
205+
"m.room.redaction": 100,
206+
"m.sticker": 100,
199207
},
200208
invite: 100,
201209
},

0 commit comments

Comments
 (0)