From 3125f4b0337779406c9bc6211c3edd643db79317 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Wed, 21 Feb 2024 13:21:05 +0100 Subject: [PATCH] Add comment as to why we return the entire content for ACLs --- roomserver/storage/tables/interface.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roomserver/storage/tables/interface.go b/roomserver/storage/tables/interface.go index a5346e521..b3cb31880 100644 --- a/roomserver/storage/tables/interface.go +++ b/roomserver/storage/tables/interface.go @@ -236,6 +236,8 @@ func ExtractContentValue(ev *types.HeaderedEvent) string { case "m.room.guest_access": key = "guest_access" case "m.room.server_acl": + // We need the entire content and not only one key, so we can use it + // on startup to generate the ACLs. This is merely a workaround. return string(content) } result := gjson.GetBytes(content, key)