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

Commit 48ac27e

Browse files
committed
fix duplicated results
1 parent e14d68e commit 48ac27e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

synapse/handlers/space_summary.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ async def get_space_summary(
115115
exclude_rooms=processed_rooms,
116116
)
117117

118+
# any rooms returned don't need visiting again
119+
processed_rooms.update(room.get("room_id") for room in rooms)
120+
118121
rooms_result.extend(rooms)
119122
events_result.extend(events)
120123

0 commit comments

Comments
 (0)