mirror of
https://github.com/discourse/discourse.git
synced 2025-04-02 22:29:38 +08:00
DEV: potential flakey fixes (#21309)
This commit is contained in:
parent
e2fbf4865a
commit
3e50a81d96
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user