Skip to content

Commit

Permalink
Replace MatrixClient.forceDiscardSession call by `MatrixClient.Cryp…
Browse files Browse the repository at this point in the history
…toApi.forceDiscardSession`
  • Loading branch information
florianduros committed Oct 17, 2024
1 parent 0c19991 commit b0a9e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SlashCommands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ export const Commands = [
isEnabled: (cli) => !isCurrentLocalRoom(cli),
runFn: function (cli, roomId) {
try {
cli.forceDiscardSession(roomId);
cli.getCrypto()?.forceDiscardSession(roomId);
} catch (e) {
return reject(e instanceof Error ? e.message : e);
}
Expand Down

0 comments on commit b0a9e8d

Please sign in to comment.