Remove SuggestKeyRestoreHandler

Didn't end up using it for this iteration
pull/21833/head
David Baker 2018-09-18 15:32:33 +01:00
parent 2cef0f7f72
commit 5ba45a71e8
1 changed files with 0 additions and 7 deletions

View File

@ -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(