mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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() {
|
_typing() {
|
||||||
const action = this.get("model.action");
|
const action = this.get("model.action");
|
||||||
|
|
||||||
if (action !== REPLY && action !== EDIT) {
|
if (
|
||||||
|
(action !== REPLY && action !== EDIT) ||
|
||||||
|
!this.get("model.composerOpened")
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user