mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08: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…
Reference in New Issue
Block a user