aboutsummaryrefslogtreecommitdiff
path: root/setup/mscs/msc2946
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2022-03-01 14:40:47 +0000
committerKegan Dougal <kegan@matrix.org>2022-03-01 14:40:55 +0000
commit8dfc958dddc5f7125633f9b5cf55371ab35ceb6c (patch)
tree3279050d7e27e3c95cb6136d7b1ea0f6a7910921 /setup/mscs/msc2946
parentaf610df85a6a2145d5ddcd6419bb8085ae224207 (diff)
Also don't send null back when the target room isn't a space room
Diffstat (limited to 'setup/mscs/msc2946')
-rw-r--r--setup/mscs/msc2946/msc2946.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup/mscs/msc2946/msc2946.go b/setup/mscs/msc2946/msc2946.go
index bf26e991..f53e7b24 100644
--- a/setup/mscs/msc2946/msc2946.go
+++ b/setup/mscs/msc2946/msc2946.go
@@ -572,7 +572,7 @@ func (w *walker) childReferences(roomID string) ([]gomatrixserverlib.MSC2946Stri
// escape the `.`s so gjson doesn't think it's nested
roomType := gjson.GetBytes(res.StateEvents[createTuple].Content(), strings.ReplaceAll(ConstCreateEventContentKey, ".", `\.`)).Str
if roomType != ConstCreateEventContentValueSpace {
- return nil, nil
+ return []gomatrixserverlib.MSC2946StrippedEvent{}, nil
}
}
delete(res.StateEvents, createTuple)