Remove references to MatrixClient.crypto
(#28204)
* Remove `VerificationExplorer` * Remove `remakeolm` slash command * Remove call to `crypto.cancelAndResendAllOutgoingKeyRequests` * Remove crypto mock in `LoginWithQR-test.tsx` * Remove `StopGadWidgetDriver.sendToDevice` * Remove remaining mock
This commit is contained in:
parent
ea5cba3649
commit
7236953d07
12 changed files with 0 additions and 380 deletions
|
@ -736,34 +736,6 @@ export const Commands = [
|
|||
category: CommandCategories.advanced,
|
||||
renderingTypes: [TimelineRenderingType.Room],
|
||||
}),
|
||||
new Command({
|
||||
command: "remakeolm",
|
||||
description: _td("slash_command|remakeolm"),
|
||||
isEnabled: (cli) => {
|
||||
return SettingsStore.getValue("developerMode") && !isCurrentLocalRoom(cli);
|
||||
},
|
||||
runFn: (cli, roomId) => {
|
||||
try {
|
||||
const room = cli.getRoom(roomId);
|
||||
|
||||
cli.forceDiscardSession(roomId);
|
||||
|
||||
return success(
|
||||
room?.getEncryptionTargetMembers().then((members) => {
|
||||
// noinspection JSIgnoredPromiseFromCall
|
||||
cli.crypto?.ensureOlmSessionsForUsers(
|
||||
members.map((m) => m.userId),
|
||||
true,
|
||||
);
|
||||
}),
|
||||
);
|
||||
} catch (e) {
|
||||
return reject(e instanceof Error ? e.message : e);
|
||||
}
|
||||
},
|
||||
category: CommandCategories.advanced,
|
||||
renderingTypes: [TimelineRenderingType.Room],
|
||||
}),
|
||||
new Command({
|
||||
command: "rainbow",
|
||||
description: _td("slash_command|rainbow"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue