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
6f0c5e5d
Commit
6f0c5e5d
authored
8 years ago
by
Erik Johnston
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1131 from matrix-org/matthew/e2e-notifs
Notify on e2e events
parents
39af634d
49cf205d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/push/baserules.py
+49
-0
49 additions, 0 deletions
synapse/push/baserules.py
with
49 additions
and
0 deletions
synapse/push/baserules.py
+
49
−
0
View file @
6f0c5e5d
...
@@ -263,6 +263,8 @@ BASE_APPEND_UNDERRIDE_RULES = [
...
@@ -263,6 +263,8 @@ BASE_APPEND_UNDERRIDE_RULES = [
}
}
]
]
},
},
# XXX: once m.direct is standardised everywhere, we should use it to detect
# a DM from the user's perspective rather than this heuristic.
{
{
'
rule_id
'
:
'
global/underride/.m.rule.room_one_to_one
'
,
'
rule_id
'
:
'
global/underride/.m.rule.room_one_to_one
'
,
'
conditions
'
:
[
'
conditions
'
:
[
...
@@ -289,6 +291,34 @@ BASE_APPEND_UNDERRIDE_RULES = [
...
@@ -289,6 +291,34 @@ BASE_APPEND_UNDERRIDE_RULES = [
}
}
]
]
},
},
# XXX: this is going to fire for events which aren't m.room.messages
# but are encrypted (e.g. m.call.*)...
{
'
rule_id
'
:
'
global/underride/.m.rule.encrypted_room_one_to_one
'
,
'
conditions
'
:
[
{
'
kind
'
:
'
room_member_count
'
,
'
is
'
:
'
2
'
,
'
_id
'
:
'
member_count
'
,
},
{
'
kind
'
:
'
event_match
'
,
'
key
'
:
'
type
'
,
'
pattern
'
:
'
m.room.encrypted
'
,
'
_id
'
:
'
_encrypted
'
,
}
],
'
actions
'
:
[
'
notify
'
,
{
'
set_tweak
'
:
'
sound
'
,
'
value
'
:
'
default
'
},
{
'
set_tweak
'
:
'
highlight
'
,
'
value
'
:
False
}
]
},
{
{
'
rule_id
'
:
'
global/underride/.m.rule.message
'
,
'
rule_id
'
:
'
global/underride/.m.rule.message
'
,
'
conditions
'
:
[
'
conditions
'
:
[
...
@@ -305,6 +335,25 @@ BASE_APPEND_UNDERRIDE_RULES = [
...
@@ -305,6 +335,25 @@ BASE_APPEND_UNDERRIDE_RULES = [
'
value
'
:
False
'
value
'
:
False
}
}
]
]
},
# XXX: this is going to fire for events which aren't m.room.messages
# but are encrypted (e.g. m.call.*)...
{
'
rule_id
'
:
'
global/underride/.m.rule.encrypted
'
,
'
conditions
'
:
[
{
'
kind
'
:
'
event_match
'
,
'
key
'
:
'
type
'
,
'
pattern
'
:
'
m.room.encrypted
'
,
'
_id
'
:
'
_encrypted
'
,
}
],
'
actions
'
:
[
'
notify
'
,
{
'
set_tweak
'
:
'
highlight
'
,
'
value
'
:
False
}
]
}
}
]
]
...
...
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