diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 792c73e330c6..d0eeb9b62e73 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -412,8 +412,8 @@ async def current_sync_for_user( async def push_rules_for_user(self, user: UserID) -> Dict[str, Dict[str, list]]: user_id = user.to_string() - rules_raw = await self.store.get_push_rules_for_user(user_id) - rules = format_push_rules_for_user(user, rules_raw ) + rules_raw = await self.store.get_push_rules_for_user(user_id) + rules = format_push_rules_for_user(user, rules_raw) return rules async def ephemeral_by_room(