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

Commit

Permalink
Add encryption to summary
Browse files Browse the repository at this point in the history
  • Loading branch information
deepbluev7 committed May 2, 2022
1 parent 9543837 commit 7d4bafd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/handlers/room_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,9 @@ async def _build_room_entry(self, room_id: str, for_federation: bool) -> JsonDic
"room_type": create_event.content.get(EventContentFields.ROOM_TYPE),
}

if stats["encryption"]:
entry["im.nheko.summary.encryption"] = stats["encryption"]

# Federation requests need to provide additional information so the
# requested server is able to filter the response appropriately.
if for_federation:
Expand Down

0 comments on commit 7d4bafd

Please sign in to comment.