How about:

```js
if (!this.length || !this.media.state.current === "ongoin")
  return;
this.media.send({
  type: "chat:typing",
  message: { nick: this.user.get("nick") }
});
```