Skip to content
Snippets Groups Projects
Unverified Commit b9540790 authored by Sean Quah's avatar Sean Quah Committed by GitHub
Browse files

Avoid mutating cached values in `_generate_sync_entry_for_account_data` (#15047)

parent a481fb9f
No related branches found
No related tags found
No related merge requests found
Avoid mutating cached values in `_generate_sync_entry_for_account_data`.
......@@ -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
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment