Update ChatManager.php