summary refs log tree commit diff
path: root/synapse/push/httppusher.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-26 17:27:28 +0000
committerDavid Baker <dave@matrix.org>2015-01-26 17:27:28 +0000
commitb481889117ceb8b31dd2e491bca53b914d306312 (patch)
tree9f5534d73e6421f73a6447b97e50cb4d9bf64a50 /synapse/push/httppusher.py
parentAdd brackets to make get room name / alias work (diff)
downloadsynapse-b481889117ceb8b31dd2e491bca53b914d306312.tar.xz
Support membership events and more camelcase/underscores
Diffstat (limited to 'synapse/push/httppusher.py')
-rw-r--r--synapse/push/httppusher.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py
index 25db1dded5..22532fcc6a 100644
--- a/synapse/push/httppusher.py
+++ b/synapse/push/httppusher.py
@@ -65,8 +65,6 @@ class HttpPusher(Pusher):
 
         d = {
             'notification': {
-                'transition': 'new',
-                # everything is new for now: we don't have read receipts
                 'id': event['event_id'],
                 'type': event['type'],
                 'from': event['user_id'],
@@ -89,11 +87,13 @@ class HttpPusher(Pusher):
                 ]
             }
         }
+        if event['type'] == 'm.room.member':
+            d['notification']['membership'] = event['content']['membership']
 
         if len(ctx['aliases']):
-            d['notification']['roomAlias'] = ctx['aliases'][0]
+            d['notification']['room_alias'] = ctx['aliases'][0]
         if 'name' in ctx:
-            d['notification']['roomName'] = ctx['name']
+            d['notification']['room_name'] = ctx['name']
 
         defer.returnValue(d)