Skip to content

Commit

Permalink
Fix racing between one-time-keys processing and sync (#3327)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianduros authored Apr 27, 2023
1 parent 3d86821 commit 1631d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ export class SyncApi {
}

// Handle one_time_keys_count and unused fallback keys
this.syncOpts.cryptoCallbacks?.processKeyCounts(
await this.syncOpts.cryptoCallbacks?.processKeyCounts(
data.device_one_time_keys_count,
data.device_unused_fallback_key_types ?? data["org.matrix.msc2732.device_unused_fallback_key_types"],
);
Expand Down

0 comments on commit 1631d6f

Please sign in to comment.