From 7d4bafdbafe4a1e4c0ccf6dadf85057368332770 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 2 May 2022 19:35:45 +0200 Subject: [PATCH] Add encryption to summary --- synapse/handlers/room_summary.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synapse/handlers/room_summary.py b/synapse/handlers/room_summary.py index ec1897f5ae63..0c9db0d8c1c6 100644 --- a/synapse/handlers/room_summary.py +++ b/synapse/handlers/room_summary.py @@ -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: