After the window is open the chat history is loaded.