mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-10 13:24:59 -04:00
Avoid fetching unused account data in sync. (#14973)
The per-room account data is no longer unconditionally fetched, even if all rooms will be filtered out. Global account data will not be fetched if it will all be filtered out.
This commit is contained in:
parent
d793fcd241
commit
cf5233b783
8 changed files with 176 additions and 90 deletions
|
@ -154,9 +154,8 @@ class InitialSyncHandler:
|
|||
|
||||
tags_by_room = await self.store.get_tags_for_user(user_id)
|
||||
|
||||
account_data, account_data_by_room = await self.store.get_account_data_for_user(
|
||||
user_id
|
||||
)
|
||||
account_data = await self.store.get_global_account_data_for_user(user_id)
|
||||
account_data_by_room = await self.store.get_room_account_data_for_user(user_id)
|
||||
|
||||
public_room_ids = await self.store.get_public_room_ids()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue