Remove outgoing message attachment caches

This commit is contained in:
trevor-signal 2024-06-05 20:08:16 -04:00 committed by GitHub
parent 012e771fc2
commit 72a55da2b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 55 deletions

View file

@ -3956,26 +3956,6 @@ export class ConversationModel extends window.Backbone
model,
'enqueueMessageForSend'
);
message.cachedOutgoingContactData = contact;
// Attach path to preview images so that sendNormalMessage can use them to
// update digests on attachments.
if (preview) {
message.cachedOutgoingPreviewData = preview.map((item, index) => {
if (!item.image) {
return item;
}
return {
...item,
image: {
...item.image,
path: attributes.preview?.at(index)?.image?.path,
},
};
});
}
message.cachedOutgoingStickerData = sticker;
const dbStart = Date.now();