From f3e623eb735fbeae5a309024880b5e09db90d393 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 16 Aug 2022 11:29:36 +0100 Subject: [PATCH] Add comment --- clientapi/routing/createroom.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clientapi/routing/createroom.go b/clientapi/routing/createroom.go index 4e16f7fc7..3e837c864 100644 --- a/clientapi/routing/createroom.go +++ b/clientapi/routing/createroom.go @@ -500,6 +500,8 @@ func createRoom( // Build some stripped state for the invite. var globalStrippedState []gomatrixserverlib.InviteV2StrippedState for _, event := range builtEvents { + // Chosen events from the spec: + // https://spec.matrix.org/v1.3/client-server-api/#stripped-state switch event.Type() { case gomatrixserverlib.MRoomCreate: fallthrough