-
-
Notifications
You must be signed in to change notification settings - Fork 115
Description
@hpk42 and others reported that desktop would show the wrong avatar sometimes.
This seems to be a combination bug of strange blob handling from core combined with caching in desktop/electron.
My theory:
core seems to save avatars to avatar.jpg multiple times somehow.
So desktop loads it, then caches it. And then a new contact gets the same path and instead of reloading (like the other clients would, I assume) it loads it from the browser cache because it has the same name/path.
I don't have the reproduction steps, and I'm guessing from what I saw here, so take it with a grain of salt.
Furthermore my blobs folder is full of the same avatar blobs and as expected they are removed by housekeeping.
What can we do?
ensure core does not replace the avatar.jpg file, like always force a suffix or maybe even add the contact id to the filename to prevent conflicts