video sticker preview img

This commit is contained in:
2026-07-16 01:02:20 +02:00
parent e94c4a439e
commit 48a2302053
2 changed files with 40 additions and 5 deletions

View File

@@ -420,9 +420,9 @@
.then(function(r) { return r.json(); })
.then(function(data) {
if (data.success) {
// Update local pack data so re-render shows correct current icon
// Use the URL the server actually stored (may be a generated WebP for .webm stickers)
var pack = (window.emojiAdmin.packs || []).find(function(p) { return p.id === packId; });
if (pack) pack.thumb_url = thumbUrl;
if (pack) pack.thumb_url = data.thumb_url || thumbUrl;
// Re-render only this pack's grid — grid stays open
renderPackGrid(packId);
} else {