Skip to content

Commit 012f6c5

Browse files
Update MSC3786 implementation: Check the state_key (#2429)
1 parent 8711499 commit 012f6c5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

spec/unit/pushprocessor.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ describe('NotificationService', function() {
302302
type: EventType.RoomServerAcl,
303303
room: testRoomId,
304304
user: "@alfred:localhost",
305+
skey: "",
305306
event: true,
306307
content: {},
307308
});

src/pushprocessor.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ const DEFAULT_OVERRIDE_RULES: IPushRule[] = [
8383
key: "type",
8484
pattern: EventType.RoomServerAcl,
8585
},
86+
{
87+
kind: ConditionKind.EventMatch,
88+
key: "state_key",
89+
pattern: "",
90+
},
8691
],
8792
actions: [],
8893
},

0 commit comments

Comments
 (0)