mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-07-08 14:24:14 +01:00
Set conversation avatar to null explicitly when missing
This commit is contained in:
committed by
Scott Nonnenberg
parent
04d0a3c523
commit
c2d1979c1e
@@ -1900,6 +1900,12 @@
|
||||
}
|
||||
);
|
||||
conversation.set(newAttributes);
|
||||
} else {
|
||||
const { attributes } = conversation;
|
||||
if (attributes.avatar && attributes.avatar.path) {
|
||||
await deleteAttachmentData(attributes.avatar.path);
|
||||
}
|
||||
conversation.set({ avatar: null });
|
||||
}
|
||||
|
||||
window.Signal.Data.updateConversation(id, conversation.attributes);
|
||||
|
||||
Reference in New Issue
Block a user