mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Also double check the state Key
in case someone is playing silly buggers
This commit is contained in:
parent
be4b2dc9a1
commit
49028130ba
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user