Set typing status before calling callback.
Merge pull request #785 from aitjcize/master

Set typing status before calling callback