window: Always reset unread count after opening a chat
Currently, the count is reset only when switching the chat page. But if the previously selected chat is the same as the currently selected one, the count isn't reset (as no switching happened)
Fixes #387 (closed)