mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-22 11:41:38 +00:00
Make "Device list doesn't change if remote server is down" pass (#2190)
This commit is contained in:
parent
fa1e12b503
commit
e9b672a34e
@ -513,6 +513,11 @@ func (a *KeyInternalAPI) queryRemoteKeysOnServer(
|
|||||||
// drop the error as it's already a failure at this point
|
// drop the error as it's already a failure at this point
|
||||||
_ = a.populateResponseWithDeviceKeysFromDatabase(ctx, res, userID, dkeys)
|
_ = a.populateResponseWithDeviceKeysFromDatabase(ctx, res, userID, dkeys)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sytest expects no failures, if we still could retrieve keys, e.g. from local cache
|
||||||
|
if len(res.DeviceKeys) > 0 {
|
||||||
|
delete(res.Failures, serverName)
|
||||||
|
}
|
||||||
respMu.Unlock()
|
respMu.Unlock()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user