summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-12-19 15:31:27 +0000
committerMark Haines <mark.haines@matrix.org>2014-12-19 15:31:27 +0000
commitefd27ff01b201c2e9f52cc90daccbda72709482e (patch)
treee58e3da0e3e32144ddcb3276a4dad1a4bc11e685
parentLook for name, topic in the event content rather than the event itself when p... (diff)
downloadsynapse-efd27ff01b201c2e9f52cc90daccbda72709482e.tar.xz
Set a state_key for the topic and room name, otherwise they won't be treated as room state
Diffstat (limited to '')
-rw-r--r--synapse/handlers/room.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 9644cd3d34..deefc3c11e 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -130,6 +130,7 @@ class RoomCreationHandler(BaseHandler):
                 "type": EventTypes.Name,
                 "room_id": room_id,
                 "sender": user_id,
+                "state_key": "",
                 "content": {"name": name},
             })
 
@@ -139,6 +140,7 @@ class RoomCreationHandler(BaseHandler):
                 "type": EventTypes.Topic,
                 "room_id": room_id,
                 "sender": user_id,
+                "state_key": "",
                 "content": {"topic": topic},
             })