Fix saving lastMessageDate when sending message