-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cache message history in local storage to speed up launch and avoid initialSyncs #121
Comments
Local storage probably isn't suitable for some people's /sync data: there will be too much. Indexed DB is probably the way to go. IIRC Rob was prodding around in this area, I'll ask him what he's done if anything. |
What about putting the pagination token in local storage... ? And then start syncing based on the pagination token. |
That doesn't help. We still need to know all the previous room state. |
So I was musing this over lunch, and I'm going to go for a quick and dirty implementation first to see where it falls down. The plan is:
This solution is completely transparent to the end-user (Riot-web). When the SDK starts, it will do it's An interesting implementation Q is whether or not to use the |
Spoke with @richvdh and @dbkr about this today:
|
are you sure we ever want to reap parts of timeline automatically? especially for E2E rooms, i'd have thought you'd want to keep as much content as possible around forever - especially when we get around to doing clientside search, unless the user explicitly purges it for privacy or diskspace reasons. Just as you wouldn't write an IRC client whose logging randomly deletes logs from under you. |
Sure, we could not do this automatically, but we do need a way to reap events beyond the nuclear option. It could be an option in RoomSettings on Riot or whatever. |
It fell over for these reasons:
All these reasons together have pushed me over the edge in terms of working out if this is the Right Way, and I don't think it is anymore. Instead, I'm going to have a stab "lower down the stack" at the raw The plan of attack now is:
|
This is done now using the |
No description provided.
The text was updated successfully, but these errors were encountered: