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

Keep cache of messages in database #774

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Conversation

TobiasFella
Copy link
Member

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

@TobiasFella TobiasFella marked this pull request as draft July 16, 2024 18:38
Quotient/room.cpp Outdated Show resolved Hide resolved
@KitsuneRal KitsuneRal added the enhancement A feature or change request for the library label Jul 17, 2024
@TobiasFella TobiasFella marked this pull request as ready for review July 20, 2024 16:27
@TobiasFella
Copy link
Member Author

I think this is ready. Please also check whether this is conceptionally sound

@TobiasFella
Copy link
Member Author

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

@TobiasFella
Copy link
Member Author

allHistoryLoaded needs to be adapted

@TobiasFella
Copy link
Member Author

allHistoryLoaded needs to be adapted

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or change request for the library
Projects
Status: 0.10(?) - To Do
Development

Successfully merging this pull request may close these issues.

2 participants