From 5ba45a71e8351af8ef9919964ca03a6a0080ff95 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 18 Sep 2018 15:32:33 +0100 Subject: [PATCH] Remove SuggestKeyRestoreHandler Didn't end up using it for this iteration --- src/components/structures/MatrixChat.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 900cd57b90..457e5dda77 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -48,8 +48,6 @@ import SettingsStore, {SettingLevel} from "../../settings/SettingsStore"; import { startAnyRegistrationFlow } from "../../Registration.js"; import { messageForSyncError } from '../../utils/ErrorUtils'; -import SuggestKeyRestoreHandler from "../../SuggestKeyRestoreHandler"; - /** constants for MatrixChat.state.view */ const VIEWS = { // a special initial state which is only used at startup, while we are @@ -1361,11 +1359,6 @@ export default React.createClass({ krh.handleKeyRequestCancellation(req); }); - const skrh = new SuggestKeyRestoreHandler(cli); - cli.on("crypto.suggestKeyRestore", () => { - skrh.handleSuggestKeyRestore(); - }); - cli.on("Room", (room) => { if (MatrixClientPeg.get().isCryptoEnabled()) { const blacklistEnabled = SettingsStore.getValueAt(