add chat to chat list in memory after sending it to the server