Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Use a more correct subset of users in /remakeolm developer command (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Oct 12, 2022
1 parent 7cb2f94 commit 7b55b89
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/SlashCommands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1104,12 +1104,13 @@ export const Commands = [

MatrixClientPeg.get().forceDiscardSession(roomId);

// noinspection JSIgnoredPromiseFromCall
MatrixClientPeg.get().crypto.ensureOlmSessionsForUsers(room.getMembers().map(m => m.userId), true);
return success(room.getEncryptionTargetMembers().then(members => {
// noinspection JSIgnoredPromiseFromCall
MatrixClientPeg.get().crypto.ensureOlmSessionsForUsers(members.map(m => m.userId), true);
}));
} catch (e) {
return reject(e.message);
}
return success();
},
category: CommandCategories.advanced,
renderingTypes: [TimelineRenderingType.Room],
Expand Down

0 comments on commit 7b55b89

Please sign in to comment.