From c8c5d715795f1609cf1c977689fe7db47d6e74d0 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Fri, 23 Jan 2026 16:06:01 -0500 Subject: [PATCH] fix theme attributes patch --- src/plugins/themeAttributes/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/themeAttributes/index.ts b/src/plugins/themeAttributes/index.ts index beb108af8..46574a5d6 100644 --- a/src/plugins/themeAttributes/index.ts +++ b/src/plugins/themeAttributes/index.ts @@ -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])" } },