When receiving a chat message, the unread message count should be increased. However, as of r11737 the public unread chat message count is always increased (even for company or private messages). This patch fixes this by increasing the right counter (public/company/private) when a chat message arrives.
Thanks, incorporated in r11738.