mirror of
https://github.com/element-hq/synapse
synced 2024-10-03 20:12:40 +00:00
Add attribute so push gateways can tell if a member event is about the user in question
This commit is contained in:
parent
369449827d
commit
5ecc768970
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ class HttpPusher(Pusher):
|
||||||
}
|
}
|
||||||
if event['type'] == 'm.room.member':
|
if event['type'] == 'm.room.member':
|
||||||
d['notification']['membership'] = event['content']['membership']
|
d['notification']['membership'] = event['content']['membership']
|
||||||
|
d['notification']['user_is_target'] = event['state_key'] == self.user_name
|
||||||
if 'content' in event:
|
if 'content' in event:
|
||||||
d['notification']['content'] = event['content']
|
d['notification']['content'] = event['content']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue