mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 17:33:09 -06:00
Handle err correctly
This commit is contained in:
parent
2d20c67f66
commit
a18015e28d
|
|
@ -365,6 +365,10 @@ func (r *RoomserverQueryAPI) QueryServerAllowedToSeeEvent(
|
||||||
}
|
}
|
||||||
|
|
||||||
_, domain, err := gomatrixserverlib.SplitID('@', *stateKey)
|
_, domain, err := gomatrixserverlib.SplitID('@', *stateKey)
|
||||||
|
if err != nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if domain == request.ServerName {
|
if domain == request.ServerName {
|
||||||
isInRoom = true
|
isInRoom = true
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue