Skip to content
Snippets Groups Projects
Commit efd27ff0 authored by Mark Haines's avatar Mark Haines
Browse files

Set a state_key for the topic and room name, otherwise they won't be treated as room state

parent 9c71d945
Branches
Tags
No related merge requests found
...@@ -130,6 +130,7 @@ class RoomCreationHandler(BaseHandler): ...@@ -130,6 +130,7 @@ class RoomCreationHandler(BaseHandler):
"type": EventTypes.Name, "type": EventTypes.Name,
"room_id": room_id, "room_id": room_id,
"sender": user_id, "sender": user_id,
"state_key": "",
"content": {"name": name}, "content": {"name": name},
}) })
...@@ -139,6 +140,7 @@ class RoomCreationHandler(BaseHandler): ...@@ -139,6 +140,7 @@ class RoomCreationHandler(BaseHandler):
"type": EventTypes.Topic, "type": EventTypes.Topic,
"room_id": room_id, "room_id": room_id,
"sender": user_id, "sender": user_id,
"state_key": "",
"content": {"topic": topic}, "content": {"topic": topic},
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment