Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Cache live chat history on client side #218

Open
akshitdewan opened this issue Jul 6, 2020 · 0 comments
Open

Cache live chat history on client side #218

akshitdewan opened this issue Jul 6, 2020 · 0 comments

Comments

@akshitdewan
Copy link

akshitdewan commented Jul 6, 2020

Currently, you don't have any history available for live chat when opening a new student's request. You also lose history if you switch to another page on the website. A possible solution is to cache the messages sent in the react state so that once you have opened the window, you will receive all messages sent.

The relevant component to look at is chat_box.js. This change would involve adding the chat messages to the state in app.js, using a socket.on("chat_message") in order to update this state and passing this state down to AppointmentLayout and TicketLayout.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant