Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Ignore display name push
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jun 8, 2022
1 parent fe6175a commit 24c3974
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions synapse/push/bulk_push_rule_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ async def action_for_event_by_user(
rules_by_user = await self._get_rules_for_event(event, context)
actions_by_user: Dict[str, List[Union[dict, str]]] = {}

room_members = await self.store.get_joined_users_from_context(event, context)
# FIXME!!!
# room_members = await self.store.get_joined_users_from_context(event, context)

room_member_count = await self.store.get_number_joined_users_in_room(
event.room_id
Expand Down Expand Up @@ -303,9 +304,10 @@ async def action_for_event_by_user(
continue

display_name = None
profile_info = room_members.get(uid)
if profile_info:
display_name = profile_info.display_name
# FIXME!!!
# profile_info = room_members.get(uid)
# if profile_info:
# display_name = profile_info.display_name

if not display_name:
# Handle the case where we are pushing a membership event to
Expand Down

0 comments on commit 24c3974

Please sign in to comment.