mirror of
https://github.com/matrix-org/dendrite
synced 2024-12-14 23:32:45 +00:00
Also don't send null back when the target room isn't a space room
This commit is contained in:
parent
af610df85a
commit
8dfc958ddd
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ func (w *walker) childReferences(roomID string) ([]gomatrixserverlib.MSC2946Stri
|
||||||
// escape the `.`s so gjson doesn't think it's nested
|
// escape the `.`s so gjson doesn't think it's nested
|
||||||
roomType := gjson.GetBytes(res.StateEvents[createTuple].Content(), strings.ReplaceAll(ConstCreateEventContentKey, ".", `\.`)).Str
|
roomType := gjson.GetBytes(res.StateEvents[createTuple].Content(), strings.ReplaceAll(ConstCreateEventContentKey, ".", `\.`)).Str
|
||||||
if roomType != ConstCreateEventContentValueSpace {
|
if roomType != ConstCreateEventContentValueSpace {
|
||||||
return nil, nil
|
return []gomatrixserverlib.MSC2946StrippedEvent{}, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete(res.StateEvents, createTuple)
|
delete(res.StateEvents, createTuple)
|
||||||
|
|
Loading…
Reference in a new issue