Improvements for patches and misc stuff (#582)

This commit is contained in:
Nuckyz
2023-03-08 00:11:59 -03:00
committed by GitHub
parent 7322c3af04
commit 40395d562a
15 changed files with 324 additions and 282 deletions

View File

@ -121,8 +121,8 @@ export default definePlugin({
{
find: ".UNREAD_HIGHLIGHT",
replacement: {
match: /(?<=(?<channel>\i)=\i\.channel,.+?\(\)\.children.+?:null)/,
replace: ",$self.TypingIndicator($<channel>.id)"
match: /\(\).children.+?:null(?<=(\i)=\i\.channel,.+?)/,
replace: (m, channel) => `${m},$self.TypingIndicator(${channel}.id)`
}
}
],