fix: emoji shortcode selection

This commit is contained in:
trisua 2025-05-05 23:17:17 -04:00
parent af67077ae7
commit 8e88cbbc6f

View file

@ -1153,7 +1153,8 @@ secondary=false) -%}
if (
use_first_shortcode.includes(
event.detail.emoji.annotation,
)
) ||
!event.detail.emoji.shortcodes[1]
) {
return event.detail.emoji.shortcodes[0];
}