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

Commit 7d4bafd

Browse files
committed
Add encryption to summary
1 parent 9543837 commit 7d4bafd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

synapse/handlers/room_summary.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,9 @@ async def _build_room_entry(self, room_id: str, for_federation: bool) -> JsonDic
715715
"room_type": create_event.content.get(EventContentFields.ROOM_TYPE),
716716
}
717717

718+
if stats["encryption"]:
719+
entry["im.nheko.summary.encryption"] = stats["encryption"]
720+
718721
# Federation requests need to provide additional information so the
719722
# requested server is able to filter the response appropriately.
720723
if for_federation:

0 commit comments

Comments
 (0)