From 526f09b6e8b4179a70bb1840eb2a4dc6c9db9c94 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Thu, 6 Mar 2025 17:54:52 +0000 Subject: [PATCH] Docstring is a contradiction. Can we make it make sense? --- synapse/storage/databases/state/store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/storage/databases/state/store.py b/synapse/storage/databases/state/store.py index 90d7beb92f..df82c77468 100644 --- a/synapse/storage/databases/state/store.py +++ b/synapse/storage/databases/state/store.py @@ -739,8 +739,8 @@ class StateGroupDataStore(StateBackgroundUpdateStore, SQLBaseStore): room_id: str, state_groups_to_sequence_numbers: Mapping[int, int], ) -> bool: - """Deletes no longer referenced state groups and de-deltas any state - groups that reference them. + """Deletes state groups that are no longer referenced by events <<>> + and de-deltas any state groups that reference them. Args: room_id: The room the state groups belong to (must all be in the