matrix-org / matrix-org/matrix-spec

The spec should clarify whether push rules for a user should be executed against their own events

Open
#1,404 0 comments 0 reactions 0 assignees View on GitHub
clarification
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

**Link to problem area**: https://spec.matrix.org/v1.5/client-server-api/#push-rules

**Issue**
Presumably users should not be sent a push notification when their own messages happen to match their defined push rules, but this is not explicitly stated in the spec.

Synapse does not evaluate notification actions for a user if they are the sender of the event: https://github.com/matrix-org/synapse/blob/33e6e916dc0f79aad770961634ad5e1f32945cf8/synapse/push/bulk_push_rule_evaluator.py#L362-L363

Contributor guide

Open the contributing guide

Research direction

Start with the linked Matrix client-server API push-rules section and review the linked Synapse evaluator behavior. Clarify in the specification whether a user's push rules apply to events they sent, with wording that makes the expected behavior explicit.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.