Minor refactor

This commit is contained in:
Jaiwanth 2021-05-09 16:12:04 +05:30
parent 6f98aa06c4
commit 1f77048750

View File

@ -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) {