Fix dropped avatar on PNP settings update

This commit is contained in:
Fedor Indutny 2024-02-05 18:29:45 -08:00 committed by GitHub
parent eb82ace2de
commit 330202960c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 42 additions and 23 deletions

View file

@ -242,8 +242,7 @@ export function createIPCEvents(
// writeProfile fetches the latest profile first so do it before updating
// local data to prevent triggering a conflict.
await writeProfile(getConversation(account), {
oldAvatar: undefined,
newAvatar: undefined,
keepAvatar: true,
});
const promises = new Array<Promise<void>>();