fix theme attributes patch

This commit is contained in:
sadan 2026-01-23 16:06:01 -05:00
parent 6afa725632
commit c8c5d71579
No known key found for this signature in database

View file

@ -29,9 +29,9 @@ export default definePlugin({
// Add data-author-id and data-is-self to all messages
{
find: ".messageListItem",
find: ".referencedUsernameProfile,referencedAvatarProfile:",
replacement: {
match: /\.messageListItem(?=,"aria)/,
match: /\.\i(?=,"aria-setsize":-1,children:.+?#{intl::MESSAGE_A11Y_ROLE_DESCRIPTION})/,
replace: "$&,...$self.getMessageProps(arguments[0])"
}
},