mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:53:45 +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:
parent
3d5589e026
commit
a849bdf0c9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user