Resolve sticker pack references after import

This commit is contained in:
Fedor Indutny 2025-01-28 13:57:19 -08:00 committed by GitHub
parent fbdf589f13
commit 9fab74e867
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 216 additions and 40 deletions

View file

@ -4155,7 +4155,12 @@ export class ConversationModel extends window.Backbone
await this.#beforeAddSingleMessage(model.attributes);
if (sticker) {
await addStickerPackReference(model.id, sticker.packId);
await addStickerPackReference({
messageId: model.id,
packId: sticker.packId,
stickerId: sticker.stickerId,
isUnresolved: false,
});
}
this.beforeMessageSend({