no point saving history at this point, maybe future supported

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-07-16 22:25:41 +01:00
parent cbe5944ff0
commit 23b6abf8b7
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -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,
}),