Update ChatManager.ts