RoleColorEverywhere: Fix issue that role icon doesn't show up (#1018)

* RoleColorEverywhere: Fix issue that role icon doesn't show up

* Cleanup authors in RoleColorEverywhere

* Remove unused import
This commit is contained in:
Yonn 2026-04-28 13:45:22 +02:00 • committed by GitHub
parent d6fdefacc4
commit ae72ab6a51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,8 +108,8 @@ export default definePlugin({
find: 'tutorialId:"whos-online',
replacement: [
{
match: /,"aria-hidden":!0,children:\[.{0,200}— ",\i\]\}\)\]/,
replace: ',"aria-hidden":!0,children:[$self.RoleGroupColor(arguments[0])]'
match: /(#{intl::CHANNEL_MEMBERS_A11Y_LABEL}.+}\):null,).{0,100}?— ",\i\]\}\)\]/,
replace: (_, rest) => `${rest}$self.RoleGroupColor(arguments[0])]`
},
],
predicate: () => settings.store.memberList