Skip to content

Commit

Permalink
Update MSC3786 implementation: Check the state_key (#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner committed Jun 3, 2022
1 parent 8711499 commit 012f6c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/unit/pushprocessor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ describe('NotificationService', function() {
type: EventType.RoomServerAcl,
room: testRoomId,
user: "@alfred:localhost",
skey: "",
event: true,
content: {},
});
Expand Down
5 changes: 5 additions & 0 deletions src/pushprocessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ const DEFAULT_OVERRIDE_RULES: IPushRule[] = [
key: "type",
pattern: EventType.RoomServerAcl,
},
{
kind: ConditionKind.EventMatch,
key: "state_key",
pattern: "",
},
],
actions: [],
},
Expand Down

0 comments on commit 012f6c5

Please sign in to comment.