mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-11 08:03:09 -06:00
Allow requesting outliers with no state
This commit is contained in:
parent
3c8c0c192d
commit
84beb42182
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue