mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
expand comment how to handle race here
This commit is contained in:
parent
0c0e164f13
commit
47d557b38d
@ -202,6 +202,9 @@ export class DeviceTracker {
|
||||
async _queryKeys(userIds, hsApi, log) {
|
||||
// TODO: we need to handle the race here between /sync and /keys/query just like we need to do for the member list ...
|
||||
// there are multiple requests going out for /keys/query though and only one for /members
|
||||
// So, while doing /keys/query, writeDeviceChanges should add userIds marked as outdated to a list
|
||||
// when /keys/query returns, we should check that list and requery if we queried for a given user.
|
||||
// and then remove the list.
|
||||
|
||||
const deviceKeyResponse = await hsApi.queryKeys({
|
||||
"timeout": 10000,
|
||||
|
Loading…
Reference in New Issue
Block a user