fix(RoleColorEverywhere): Chat mentions (#605)

main
Lewis Crichton 2 years ago 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,

Loading…
Cancel
Save