mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Resolve sticker pack references after import
This commit is contained in:
@@ -314,11 +314,17 @@ export async function queueAttachmentDownloads(
|
||||
log.error(`${idLog}: Sticker data was missing`);
|
||||
}
|
||||
}
|
||||
const stickerRef = {
|
||||
messageId,
|
||||
packId,
|
||||
stickerId,
|
||||
isUnresolved: sticker.data?.error === true,
|
||||
};
|
||||
if (!status) {
|
||||
// Save the packId/packKey for future download/install
|
||||
void savePackMetadata(packId, packKey, { messageId });
|
||||
void savePackMetadata(packId, packKey, stickerRef);
|
||||
} else {
|
||||
await DataWriter.addStickerPackReference(messageId, packId);
|
||||
await DataWriter.addStickerPackReference(stickerRef);
|
||||
}
|
||||
|
||||
if (!data) {
|
||||
|
||||
Reference in New Issue
Block a user