mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 01:13:10 -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)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
if domain == request.ServerName {
|
||||
isInRoom = true
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue