mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 18:54:13 -04:00
Support membership events and more camelcase/underscores
This commit is contained in:
parent
69a75b7ebe
commit
b481889117
2 changed files with 8 additions and 4 deletions
|
@ -65,6 +65,10 @@ class Pusher(object):
|
|||
# let's assume you probably know about messages you sent yourself
|
||||
defer.returnValue(['dont_notify'])
|
||||
|
||||
if ev['type'] == 'm.room.member':
|
||||
if ev['state_key'] != self.user_name:
|
||||
defer.returnValue(['dont_notify'])
|
||||
|
||||
rules = yield self.store.get_push_rules_for_user_name(self.user_name)
|
||||
|
||||
for r in rules:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue