mirror of
https://github.com/discourse/discourse.git
synced 2025-06-16 18:28:15 +08:00
DEV: potential flakey fixes (#21309)
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user