mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-09 14:16:22 +02:00
Minor refactor
This commit is contained in:
parent
6f98aa06c4
commit
1f77048750
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user