DEV: potential flakey fixes (#21309)

This commit is contained in:
Joffrey JAFFEUX 2023-04-29 00:15:51 +02:00 committed by GitHub
parent e2fbf4865a
commit 3e50a81d96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,7 @@ export default class ChatComposer extends Component {
this.currentMessage.uploads = cloneJSON(uploads);
}
this.textareaInteractor.focus();
this.textareaInteractor?.focus();
this.reportReplyingPresence();
this.persistDraft();
}
@ -212,6 +212,10 @@ export default class ChatComposer extends Component {
}
reportReplyingPresence() {
if (!this.args.channel) {
return;
}
if (this.args.channel.isDraft) {
return;
}