Also double check the state Key

in case someone is playing silly buggers
This commit is contained in:
David Robertson 2023-08-22 16:08:53 +01:00
parent be4b2dc9a1
commit 49028130ba
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -217,7 +217,7 @@ func (a *Accumulator) Initialise(roomID string, state []json.RawMessage) (Initia
// single stray event by looking for the create event.
hasCreate := false
for _, e := range events {
if e.Type == "m.room.create" {
if e.Type == "m.room.create" && e.StateKey == "" {
hasCreate = true
break
}