would be a good idea to move those callback implementations to their own class, ChatManager.cpp is big enough already