StatusPresets Fix

This commit is contained in:
thororen1234 2024-11-08 23:55:17 -05:00
parent 8f994543ed
commit c56f700fba

View file

@ -138,11 +138,12 @@ export default definePlugin({
}
},
{
find: /"aria-label":.{0,1}\.\i\.string\(\i\.\i#{intl::STATUS_MENU_LABEL}/,
find: "#{intl::STATUS_MENU_LABEL}",
replacement: {
match: /!\i&&(.{0,15}\i\.Fragment.{0,55}null==(\i).{0,200}customEmojiPlaceholder\}\),onClick:([^}]+}))/,
replace: "$self.render($2, $3),false&&$1"
}
},
all: true
}
],
render(status: null | { emoji: Emoji | null; }, openCustomStatusModal: () => void) {