fix(RoleColorEverywhere): Chat mentions (#605)

This commit is contained in:
Lewis Crichton 2023-03-16 01:27:46 +00:00 committed by GitHub
parent ed873ef9de
commit 4c5a56a8a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,8 +52,8 @@ export default definePlugin({
find: 'className:"mention"',
replacement: [
{
match: /user:(\i),channelId:(\i).{0,300}?"@"\.concat\(.+?\)/,
replace: "$&,color:$self.getUserColor($1.id,{channelId:$2})"
match: /user:(\i),channel:(\i).{0,300}?"@"\.concat\(.+?\)/,
replace: "$&,color:$self.getUserColor($1.id,{channelId:$2.id})"
}
],
predicate: () => settings.store.chatMentions,