application: Reset chat unread count on window focus
When the chat is open from notification, the window may not have focus when the chat view is open and thus the unread count won't be updated as it's updated only if window has focus.
So hook to "has-toplevel-property" property and update unread count for the active chat
Fixes #594 (closed)
Edited by Mohammed Sadiq