summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-03-06 14:41:50 +0000
committerDavid Baker <dave@matrix.org>2015-03-06 14:41:50 +0000
commit5ecc768970c7f9c0184c48df12c90ffb2042b270 (patch)
tree5d07ff65c55b4cb2fe2c8f904003d882127b7a8f /synapse
parentBump version (diff)
downloadsynapse-5ecc768970c7f9c0184c48df12c90ffb2042b270.tar.xz
Add attribute so push gateways can tell if a member event is about the user in question
Diffstat (limited to '')
-rw-r--r--synapse/push/httppusher.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py
index 202fcb42f4..caca709f10 100644
--- a/synapse/push/httppusher.py
+++ b/synapse/push/httppusher.py
@@ -88,6 +88,7 @@ class HttpPusher(Pusher):
         }
         if event['type'] == 'm.room.member':
             d['notification']['membership'] = event['content']['membership']
+            d['notification']['user_is_target'] = event['state_key'] == self.user_name
         if 'content' in event:
             d['notification']['content'] = event['content']