summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/room.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 3451250008..9261984b7e 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -255,7 +255,10 @@ class MessageHandler(BaseHandler):
         ret = []
 
         for event in room_list:
-            d = event.get_dict()
+            d = {
+                "room_id": event.room_id,
+                "membership": event.membership,
+            }
             ret.append(d)
 
             if event.membership != Membership.JOIN: