mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-02 06:11:32 +01:00
Resolve sticker pack references after import
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
@@ -303,11 +303,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