mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-29 08:18:27 +00:00
Try harder to query remote keys
This commit is contained in:
parent
5a00ff3634
commit
0571b7eb1d
1 changed files with 3 additions and 0 deletions
|
@ -232,6 +232,9 @@ func (a *KeyInternalAPI) QueryKeys(ctx context.Context, req *api.QueryKeysReques
|
||||||
util.GetLogger(ctx).WithError(err).Error("Failed to retrieve cross-signing keys from database")
|
util.GetLogger(ctx).WithError(err).Error("Failed to retrieve cross-signing keys from database")
|
||||||
crossSigningSatisfiedLocally = false
|
crossSigningSatisfiedLocally = false
|
||||||
}
|
}
|
||||||
|
if len(res.MasterKeys) == 0 || len(res.SelfSigningKeys) == 0 {
|
||||||
|
crossSigningSatisfiedLocally = false
|
||||||
|
}
|
||||||
|
|
||||||
// make a map from domain to device keys
|
// make a map from domain to device keys
|
||||||
domainToDeviceKeys := make(map[string]map[string][]string)
|
domainToDeviceKeys := make(map[string]map[string][]string)
|
||||||
|
|
Loading…
Reference in a new issue