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

View File

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