From 3653b4b92e6b6f8f727a4b7888df7f79a3c936d6 Mon Sep 17 00:00:00 2001 From: FrenchGithubUser Date: Mon, 4 May 2026 18:48:33 +0200 Subject: [PATCH] fix: MSC4311 requires the create event to be present in stripped state, but extra fields shouldn't be there --- tests/v12_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/v12_test.go b/tests/v12_test.go index 6139bc6f..72e0f3c5 100644 --- a/tests/v12_test.go +++ b/tests/v12_test.go @@ -1357,15 +1357,12 @@ func TestMSC4311FullCreateEventOnStrippedState(t *testing.T) { fmt.Sprintf("rooms.invite.%s.invite_state.events", client.GjsonEscape(roomID)), ) must.NotEqual(t, len(inviteState.Array()), 0, "no events in invite_state") - // find the create event + // find the create event: MSC4311 requires it to be present, but clients + // still receive it in stripped state format (no extra fields) found := false for _, ev := range inviteState.Array() { if ev.Get("type").Str == spec.MRoomCreate { found = true - // we should have extra fields - must.MatchGJSON(t, ev, - match.JSONKeyPresent("origin_server_ts"), - ) } } if !found {