mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 02:32:14 -04:00
Add a constant for m.federate. (#10775)
This commit is contained in:
parent
66d72b7e17
commit
0288e6033b
8 changed files with 28 additions and 10 deletions
|
@ -390,9 +390,9 @@ class RoomCreationHandler(BaseHandler):
|
|||
old_room_create_event = await self.store.get_create_event_for_room(old_room_id)
|
||||
|
||||
# Check if the create event specified a non-federatable room
|
||||
if not old_room_create_event.content.get("m.federate", True):
|
||||
if not old_room_create_event.content.get(EventContentFields.FEDERATE, True):
|
||||
# If so, mark the new room as non-federatable as well
|
||||
creation_content["m.federate"] = False
|
||||
creation_content[EventContentFields.FEDERATE] = False
|
||||
|
||||
initial_state = {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue