Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
preserve PLs
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Oct 25, 2018
1 parent 4cda300 commit 1b9f253
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion synapse/handlers/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,13 @@ def clone_exiting_room(
}
}

initial_state = OrderedDict()
initial_state = dict()

old_room_state_ids = yield self.store.get_current_state_ids(old_room_id)
pl_event_id = old_room_state_ids.get((EventTypes.PowerLevels, ""))
if pl_event_id:
pl_event = yield self.store.get_event(pl_event_id)
initial_state[(EventTypes.PowerLevels, "")] = pl_event.content

yield self._send_events_for_new_room(
requester,
Expand Down

0 comments on commit 1b9f253

Please sign in to comment.