mirror of https://github.com/vector-im/riot-web
parent
4cc8b5621d
commit
1e80edb43c
|
@ -74,7 +74,7 @@ export default class MessageComposer extends React.Component {
|
|||
}
|
||||
|
||||
onPageUnload(event) {
|
||||
if (this.messageComposerInput) {
|
||||
if (this.messageComposerInput && this.messageComposerInput.sentHistory) {
|
||||
this.messageComposerInput.sentHistory.saveLastTextEntry();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue