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

Commit 3125f4b

Browse files
committed
Add comment as to why we return the entire content for ACLs
1 parent 2c29e1c commit 3125f4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roomserver/storage/tables/interface.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ func ExtractContentValue(ev *types.HeaderedEvent) string {
236236
case "m.room.guest_access":
237237
key = "guest_access"
238238
case "m.room.server_acl":
239+
// We need the entire content and not only one key, so we can use it
240+
// on startup to generate the ACLs. This is merely a workaround.
239241
return string(content)
240242
}
241243
result := gjson.GetBytes(content, key)

0 commit comments

Comments
 (0)