threema-web icon indicating copy to clipboard operation
threema-web copied to clipboard

Caching user data

Open lgrahl opened this issue 7 years ago • 2 comments

Yep, this is going to be a very controversial idea but bear with me. We could cache user data, so it doesn't need to be requested from the Threema app every time. This could be beneficial for preview images, images in general, voice messages, videos and potentially even for the conversation history.

Now, you may say this is a preposterous idea and what on earth am I thinking because my original design tried very hard to prevent exactly that: Having the user data in several places. But what if this data is encrypted twice, first by the session password and then by a secret key that needs to be requested from the app? And this should of course be an optional feature.

lgrahl avatar May 19 '18 01:05 lgrahl

Synchronization would be quite challenging, since the app would first need to know what information is available.

dbrgn avatar May 21 '18 19:05 dbrgn

UUIDs could be used for that. IIRC they have already been used for several items in the database.

lgrahl avatar May 22 '18 02:05 lgrahl