mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 19:53:41 +08:00
FIX: Don't publish typing presence if composer isn't opened.
Hitting cancel on composer will set composer's reply and title to null causing our observer to fire.
This commit is contained in:
@ -62,7 +62,10 @@ export default Component.extend({
|
||||
_typing() {
|
||||
const action = this.get("model.action");
|
||||
|
||||
if (action !== REPLY && action !== EDIT) {
|
||||
if (
|
||||
(action !== REPLY && action !== EDIT) ||
|
||||
!this.get("model.composerOpened")
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user