fixed unreadMessages in new-message event