diff --git a/changelog.d/1663.feature b/changelog.d/1663.feature new file mode 100644 index 000000000..7092275bf --- /dev/null +++ b/changelog.d/1663.feature @@ -0,0 +1,2 @@ +- New PM rooms are configured to disable calls, reactions, redactions, and stickers; + as they could not be bridged anyway. diff --git a/spec/integ/pm.spec.js b/spec/integ/pm.spec.js index 48aff4f46..027ed0259 100644 --- a/spec/integ/pm.spec.js +++ b/spec/integ/pm.spec.js @@ -284,7 +284,12 @@ describe("IRC-to-Matrix PMing", () => { "m.room.canonical_alias": 100, "m.room.history_visibility": 100, "m.room.power_levels": 100, - "m.room.encryption": 100 + "m.room.encryption": 100, + "m.call.invite": 100, + "m.call.candidate": 100, + "m.reaction": 100, + "m.room.redaction": 100, + "m.sticker": 100, }, invite: 100 }, diff --git a/src/bridge/IrcHandler.ts b/src/bridge/IrcHandler.ts index 6e9168e67..439861ef1 100644 --- a/src/bridge/IrcHandler.ts +++ b/src/bridge/IrcHandler.ts @@ -195,7 +195,15 @@ export class IrcHandler { "m.room.canonical_alias": 100, "m.room.history_visibility": 100, "m.room.power_levels": 100, - "m.room.encryption": 100 + "m.room.encryption": 100, + // Event types that we cannot translate to IRC; + // we might as well block them with PLs so + // Matrix clients can hide them from their UI. + "m.call.invite": 100, + "m.call.candidate": 100, + "m.reaction": 100, + "m.room.redaction": 100, + "m.sticker": 100, }, invite: 100, },