mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
no point saving history at this point, maybe future supported
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -34,7 +34,8 @@ class MessageComposerStore {
|
|||||||
localStorage.setItem(this._getKey(roomId), JSON.stringify({
|
localStorage.setItem(this._getKey(roomId), JSON.stringify({
|
||||||
editor_state: editorState.toJSON({
|
editor_state: editorState.toJSON({
|
||||||
preserveSelection: true,
|
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
|
// XXX: this seems like a workaround for selection.isSet being based on anchorKey instead of anchorPath
|
||||||
preserveKeys: true,
|
preserveKeys: true,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user