1
0
Fork 0

Fix sticker names being accumulated

This commit is contained in:
Cadence Ember 2024-09-12 17:18:15 +12:00
parent 915c34646a
commit eaa3b87670

View file

@ -66,7 +66,7 @@ async function stickersToState(stickers) {
while (shortcodes.includes(shortcode)) shortcode = shortcode + "~" while (shortcodes.includes(shortcode)) shortcode = shortcode + "~"
shortcodes.push(shortcode) shortcodes.push(shortcode)
result.images[shortcodes] = { result.images[shortcode] = {
info: { info: {
mimetype: file.stickerFormat.get(sticker.format_type)?.mime || "image/png" mimetype: file.stickerFormat.get(sticker.format_type)?.mime || "image/png"
}, },