Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
3b554bda
Commit
3b554bda
authored
9 years ago
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
Never notify for member events. This fixes
https://github.com/vector-im/vector-web/issues/828
parent
647b041d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/push/baserules.py
+21
-20
21 additions, 20 deletions
synapse/push/baserules.py
with
21 additions
and
20 deletions
synapse/push/baserules.py
+
21
−
20
View file @
3b554bda
...
@@ -160,7 +160,27 @@ BASE_APPEND_OVRRIDE_RULES = [
...
@@ -160,7 +160,27 @@ BASE_APPEND_OVRRIDE_RULES = [
'
actions
'
:
[
'
actions
'
:
[
'
dont_notify
'
,
'
dont_notify
'
,
]
]
}
},
# Will we sometimes want to know about people joining and leaving?
# Perhaps: if so, this could be expanded upon. Seems the most usual case
# is that we don't though. We add this override rule so that even if
# the room rule is set to notify, we don't get notifications about
# join/leave/avatar/displayname events.
# See also: https://matrix.org/jira/browse/SYN-607
{
'
rule_id
'
:
'
global/override/.m.rule.member_event
'
,
'
conditions
'
:
[
{
'
kind
'
:
'
event_match
'
,
'
key
'
:
'
type
'
,
'
pattern
'
:
'
m.room.member
'
,
'
_id
'
:
'
_member
'
,
}
],
'
actions
'
:
[
'
dont_notify
'
]
},
]
]
...
@@ -261,25 +281,6 @@ BASE_APPEND_UNDERRIDE_RULES = [
...
@@ -261,25 +281,6 @@ BASE_APPEND_UNDERRIDE_RULES = [
}
}
]
]
},
},
# This is too simple: https://matrix.org/jira/browse/SYN-607
# Removing for now
# {
# 'rule_id': 'global/underride/.m.rule.member_event',
# 'conditions': [
# {
# 'kind': 'event_match',
# 'key': 'type',
# 'pattern': 'm.room.member',
# '_id': '_member',
# }
# ],
# 'actions': [
# 'notify', {
# 'set_tweak': 'highlight',
# 'value': False
# }
# ]
# },
{
{
'
rule_id
'
:
'
global/underride/.m.rule.message
'
,
'
rule_id
'
:
'
global/underride/.m.rule.message
'
,
'
conditions
'
:
[
'
conditions
'
:
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment