Resets notification badge when chat is opened
The chat notification badge currently is only reseted on the window.focus
event. If the window is focused and a new notification is delivered, it will not disappear unless you select a different tab and then go back to Noosfero. This patch fixes this behavior.