Set conversation avatar to null explicitly when missing

This commit is contained in:
Josh Perez
2020-01-24 15:50:41 -08:00
committed by Scott Nonnenberg
parent 04d0a3c523
commit c2d1979c1e

View File

@@ -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);