Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show old messages when opening the app #6

Open
flplima opened this issue Aug 31, 2020 · 2 comments
Open

Show old messages when opening the app #6

flplima opened this issue Aug 31, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@flplima
Copy link
Owner

flplima commented Aug 31, 2020

What would you like to be added:
All messages sent and received are saved in the MongoDB database, however, they are currently not displayed when the app opens.

Why is this needed:
We need that when the app opens, send an event to the server (through socket.io), and the server responds with the old messages saved in the database. Then the React app can render them on the screen, just like any messaging app.

Is your enhancement request related to a problem? Please describe.
It is frustrating when you send many messages and restart the app and see that they are not there, even being saved in the database.

It would be even better if the server returned a limited number of messages (for example, 20), and loaded more as the user scrolled through the app. That is, an infinite loading. But that could be an improvement for an upcoming release.

@flplima flplima added the enhancement New feature or request label Aug 31, 2020
@geekyayush
Copy link

Dude, this project is 🔥.
Would love to contribute to this project and see it grow 🚀.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants
@flplima @geekyayush and others