From 23b6abf8b727e6c478f163087b3340aaf5e33314 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 16 Jul 2018 22:25:41 +0100 Subject: [PATCH] no point saving history at this point, maybe future supported Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/stores/MessageComposerStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stores/MessageComposerStore.js b/src/stores/MessageComposerStore.js index f180d931bf..ab2dbfedec 100644 --- a/src/stores/MessageComposerStore.js +++ b/src/stores/MessageComposerStore.js @@ -34,7 +34,8 @@ class MessageComposerStore { localStorage.setItem(this._getKey(roomId), JSON.stringify({ editor_state: editorState.toJSON({ preserveSelection: true, - preserveHistory: true, + // XXX: re-hydrating history is not currently supported by fromJSON + // preserveHistory: true, // XXX: this seems like a workaround for selection.isSet being based on anchorKey instead of anchorPath preserveKeys: true, }),