Fix updating chatroom unread log counts for user during publishing chatrooms.
Reset unread log counts for a chatroom when switching to/from it.