Sticker cache

This commit is contained in:
2025-03-04 23:56:39 +08:00
parent e075804782
commit 6235e736b9
2 changed files with 69 additions and 6 deletions

View File

@ -284,7 +284,10 @@ class _StickerPackAddPopupState extends State<_StickerPackAddPopup> {
);
if (!mounted) return;
context.showSnackbar('stickersAdded'.tr());
if (_pack?.stickers != null) stickers.putSticker(_pack!.stickers!);
if (_pack?.stickers != null) {
stickers.putSticker(
_pack!.stickers!.map((ele) => ele.copyWith(pack: _pack!)));
}
Navigator.pop(context, true);
} catch (err) {
if (!mounted) return;