Set conversation avatar to null explicitly when missing
This commit is contained in:
parent
04d0a3c523
commit
c2d1979c1e
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue