-
Notifications
You must be signed in to change notification settings - Fork 56
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
Keep cache of messages in database #774
base: dev
Are you sure you want to change the base?
Conversation
c4e351b
to
76fc3d1
Compare
76fc3d1
to
5b328f6
Compare
I think this is ready. Please also check whether this is conceptionally sound |
This is only solid because the stored messages for each room are guaranteed not to have any missing chunks between them (historical messages always come in starting from the oldest known message and new syncs always bring all new messages). If this ever changes (sliding sync?), this would probably get a whole lot messier |
allHistoryLoaded needs to be adapted |
Done |
Improves startup time, general UX, allows for client-side message search in the future, ...
While increasing requiring more storage on the client, of course.
There are some TODOs left in the code for things that need to be implemented and figured out