From a18015e28d0b095d25142ebc0f4baec00721e55f Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 5 Sep 2017 11:05:31 +0100 Subject: [PATCH] Handle err correctly --- src/github.com/matrix-org/dendrite/roomserver/query/query.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/roomserver/query/query.go b/src/github.com/matrix-org/dendrite/roomserver/query/query.go index 6d3be2037..7f8da9bf1 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/query/query.go +++ b/src/github.com/matrix-org/dendrite/roomserver/query/query.go @@ -365,6 +365,10 @@ func (r *RoomserverQueryAPI) QueryServerAllowedToSeeEvent( } _, domain, err := gomatrixserverlib.SplitID('@', *stateKey) + if err != nil { + continue + } + if domain == request.ServerName { isInRoom = true break