Allow requesting outliers with no state

This commit is contained in:
Neil Alexander 2022-08-23 13:42:32 +01:00
parent 3c8c0c192d
commit 84beb42182
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -256,9 +256,9 @@ func CheckServerAllowedToSeeEvent(
default: default:
switch err.(type) { switch err.(type) {
case types.MissingStateError: case types.MissingStateError:
// TODO: This may prevent other servers from requesting outliers from us. // If there's no state then we assume it's open visibility, as Synapse does:
// Is this the right thing to do? // https://github.com/matrix-org/synapse/blob/aec87a0f9369a3015b2a53469f88d1de274e8b71/synapse/visibility.py#L654-L655
return false, nil return true, nil
default: default:
// Something else went wrong // Something else went wrong
return false, err return false, err