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

Commit

Permalink
fix duplicated results
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Mar 19, 2021
1 parent e14d68e commit 48ac27e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/handlers/space_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ async def get_space_summary(
exclude_rooms=processed_rooms,
)

# any rooms returned don't need visiting again
processed_rooms.update(room.get("room_id") for room in rooms)

rooms_result.extend(rooms)
events_result.extend(events)

Expand Down

0 comments on commit 48ac27e

Please sign in to comment.