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:
Guo Xiang Tan 2020-05-14 12:52:10 +08:00
parent 3d5589e026
commit a849bdf0c9
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -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;
}