From d6211b55477ba70c99ae06dcf21e0c1e5983c18c Mon Sep 17 00:00:00 2001 From: "H. Shay" Date: Thu, 3 Nov 2022 12:29:13 -0700 Subject: lints --- synapse/handlers/room.py | 1 + synapse/storage/controllers/state.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index fe86e78677..04dc56e166 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -1260,6 +1260,7 @@ class RoomCreationHandler: events_to_send.append((encryption_event, encryption_context)) assert self.hs.datastores is not None + assert current_state_group is not None state_groups = await self.hs.datastores.state.store_state_deltas_for_batched( events_to_send, room_id, prev_group=current_state_group ) diff --git a/synapse/storage/controllers/state.py b/synapse/storage/controllers/state.py index 2b31ce54bb..6d41c8e42e 100644 --- a/synapse/storage/controllers/state.py +++ b/synapse/storage/controllers/state.py @@ -399,7 +399,11 @@ class StateStorageController: The state group ID """ return await self.stores.state.store_state_group( - event_id, room_id, prev_group, delta_ids, current_state_ids + event_id, + room_id, + prev_group, + delta_ids, + current_state_ids, ) @cancellable -- cgit 1.4.1