mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-10 18:05:17 -04:00
Avoid mutating cached values in _generate_sync_entry_for_account_data
(#15047)
This commit is contained in:
parent
a481fb9f98
commit
b95407908d
2 changed files with 3 additions and 0 deletions
|
@ -1753,6 +1753,7 @@ class SyncHandler:
|
|||
)
|
||||
|
||||
if push_rules_changed:
|
||||
global_account_data = dict(global_account_data)
|
||||
global_account_data["m.push_rules"] = await self.push_rules_for_user(
|
||||
sync_config.user
|
||||
)
|
||||
|
@ -1763,6 +1764,7 @@ class SyncHandler:
|
|||
account_data_by_room,
|
||||
) = await self.store.get_account_data_for_user(sync_config.user.to_string())
|
||||
|
||||
global_account_data = dict(global_account_data)
|
||||
global_account_data["m.push_rules"] = await self.push_rules_for_user(
|
||||
sync_config.user
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue