Add comment as to why we return the entire content for ACLs

This commit is contained in:
Till Faelligen 2024-02-21 13:21:05 +01:00
parent 2c29e1c9c8
commit 3125f4b033
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -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)