We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a17f21b commit 787b2fcCopy full SHA for 787b2fc
1 file changed
tests/v12_test.go
@@ -1357,15 +1357,12 @@ func TestMSC4311FullCreateEventOnStrippedState(t *testing.T) {
1357
fmt.Sprintf("rooms.invite.%s.invite_state.events", client.GjsonEscape(roomID)),
1358
)
1359
must.NotEqual(t, len(inviteState.Array()), 0, "no events in invite_state")
1360
- // find the create event
+ // find the create event: MSC4311 requires it to be present, but clients
1361
+ // still receive it in stripped state format (no extra fields)
1362
found := false
1363
for _, ev := range inviteState.Array() {
1364
if ev.Get("type").Str == spec.MRoomCreate {
1365
found = true
- // we should have extra fields
1366
- must.MatchGJSON(t, ev,
1367
- match.JSONKeyPresent("origin_server_ts"),
1368
- )
1369
}
1370
1371
if !found {
0 commit comments