diff --git a/src/backend/models/special_models.py b/src/backend/models/special_models.py index 582582cb..5eb24374 100644 --- a/src/backend/models/special_models.py +++ b/src/backend/models/special_models.py @@ -13,13 +13,12 @@ class AllRooms(FieldSubstringFilter): """Flat filtered list of all accounts and their rooms.""" def __init__(self, accounts: Model) -> None: + self.accounts = accounts + self._collapsed: Set[str] = set() + super().__init__(sync_id="all_rooms", fields=("display_name",)) self.items_changed_callbacks.append(self.refilter_accounts) - self.accounts = accounts - - self._collapsed: Set[str] = set() - def set_account_collapse(self, user_id: str, collapsed: bool) -> None: """Set whether the rooms for an account should be filtered out."""