Rename function in chat controller.