Not sure what the best way to go about this would be, but it would be nice to have chat history persist on refresh
Since we're not saving messages in the server it might be a good idea to store received messages locally. Perhaps they could be delete based off of a TTL value that users set for their own messages, though obviously this wouldn't be very secure as people would be able to copy stuff from the browser storage
Otherwise, in the case of logged out users, I think it would make the most sense for messages to survive as long as the session cookie. So if no session cookie or new one has to be requested -> delete locally stored messages, otherwise keep
Not sure what the best way to go about this would be, but it would be nice to have chat history persist on refresh
Since we're not saving messages in the server it might be a good idea to store received messages locally. Perhaps they could be delete based off of a TTL value that users set for their own messages, though obviously this wouldn't be very secure as people would be able to copy stuff from the browser storage
Otherwise, in the case of logged out users, I think it would make the most sense for messages to survive as long as the session cookie. So if no session cookie or new one has to be requested -> delete locally stored messages, otherwise keep