mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-19 10:13:39 +00:00
Let's try this again
This commit is contained in:
parent
67421a9d65
commit
ddb60859b7
1 changed files with 8 additions and 3 deletions
|
@ -285,16 +285,21 @@ func (a *KeyInternalAPI) QueryKeys(ctx context.Context, req *api.QueryKeysReques
|
||||||
}
|
}
|
||||||
// work out if our cross-signing request for this user was
|
// work out if our cross-signing request for this user was
|
||||||
// satisfied, if not add them to the list of things to fetch
|
// satisfied, if not add them to the list of things to fetch
|
||||||
if _, ok := domainToDeviceKeys[domain]; !ok {
|
|
||||||
domainToDeviceKeys[domain] = make(map[string][]string)
|
|
||||||
}
|
|
||||||
if _, ok := res.MasterKeys[userID]; !ok {
|
if _, ok := res.MasterKeys[userID]; !ok {
|
||||||
|
if _, ok := domainToDeviceKeys[domain]; !ok {
|
||||||
|
domainToDeviceKeys[domain] = make(map[string][]string)
|
||||||
|
}
|
||||||
if _, ok := domainToDeviceKeys[domain][userID]; !ok {
|
if _, ok := domainToDeviceKeys[domain][userID]; !ok {
|
||||||
|
util.GetLogger(ctx).Infof("Request cross-signing keys from %s for %s", domain, userID)
|
||||||
domainToDeviceKeys[domain][userID] = []string{}
|
domainToDeviceKeys[domain][userID] = []string{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if _, ok := res.SelfSigningKeys[userID]; !ok {
|
if _, ok := res.SelfSigningKeys[userID]; !ok {
|
||||||
|
if _, ok := domainToDeviceKeys[domain]; !ok {
|
||||||
|
domainToDeviceKeys[domain] = make(map[string][]string)
|
||||||
|
}
|
||||||
if _, ok := domainToDeviceKeys[domain][userID]; !ok {
|
if _, ok := domainToDeviceKeys[domain][userID]; !ok {
|
||||||
|
util.GetLogger(ctx).Infof("Request cross-signing keys from %s for %s", domain, userID)
|
||||||
domainToDeviceKeys[domain][userID] = []string{}
|
domainToDeviceKeys[domain][userID] = []string{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue