Skip to content

Commit

Permalink
squash! Add getUserDeviceInfo WIP impl to rust-crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros committed Apr 13, 2023
1 parent a4aeaaf commit 47f45dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust-crypto/rust-crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class RustCrypto implements CryptoBackend {

// for any users whose device lists we are not tracking, fall back to downloading the device list
// over HTTP.
if (untrackedUsers.size >= 1) {
if (downloadUncached && untrackedUsers.size >= 1) {
const queryResult = await this.downloadDeviceList(untrackedUsers);
Object.entries(queryResult.device_keys).forEach(([userId, deviceKeys]) =>
iDeviceMapByUserId.set(userId, deviceKeysToIDeviceMap(deviceKeys)),
Expand Down

0 comments on commit 47f45dc

Please sign in to comment.