Some chat update logic fixes; message input flags correction