fix: Compare push user_is_target against the notified user #2454
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity!2454
Loading…
Reference in a new issue
No description provided.
Delete branch "bardi/continuwuity:fix/push-user-is-target"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request sets
user_is_targetby comparing a member event'sstate_keyto the user receiving the notification, rather than the sender.Spec: https://spec.matrix.org/v1.19/push-gateway-api/#post_matrixpushv1notify
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
user_is_targetagainst the notified user8d859bbab3a3d17660eaLooks like linting fails (too many args on the function), you can probably just add the clippy ignore for it
a3d17660eadb86d42801ah my bad, precommit would have caught that if I had set it up correctly
Happens to the best of us; otherwise okay, scheduled to merge when CI passes - thanks!