Skip to content

Commit

Permalink
Mark users as tracked before encrypting to them (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live authored Mar 20, 2023
1 parent 8f7ef01 commit bc7b9f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/e2ee/RustEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class RustEngine {
settings.rotationPeriodMessages = BigInt(encEv.rotationPeriodMessages);

await this.lock.acquire(SYNC_LOCK_NAME, async () => {
await this.machine.updateTrackedUsers(members); // just in case we missed some
await this.runOnly(RequestType.KeysQuery);
const keysClaim = await this.machine.getMissingSessions(members);
if (keysClaim) {
Expand Down

0 comments on commit bc7b9f9

Please sign in to comment.