From 1f7704875013b70717fa0866a3db028319b2c972 Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Sun, 9 May 2021 16:12:04 +0530 Subject: [PATCH] Minor refactor --- src/components/views/rooms/EditMessageComposer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/views/rooms/EditMessageComposer.js b/src/components/views/rooms/EditMessageComposer.js index dd87654438..46999bb793 100644 --- a/src/components/views/rooms/EditMessageComposer.js +++ b/src/components/views/rooms/EditMessageComposer.js @@ -182,8 +182,7 @@ export default class EditMessageComposer extends React.Component { } get _shouldSaveStoredEditorState() { - return localStorage.getItem(`mx_edit_state_${this.props.editState.getEvent().getRoomId()} - _${this.props.editState.getEvent().event.event_id}`) !== null; + return localStorage.getItem(this._editorStateKey) !== null; } _restoreStoredEditorState(partCreator) {