Fix InvisibleChat

This commit is contained in:
Vendicated 2023-10-25 20:24:17 +02:00
parent 2169090ce5
commit 3fdd0edf14
No known key found for this signature in database
GPG Key ID: D66986BAF75ECF18

View File

@ -131,7 +131,7 @@ export default definePlugin({
// Indicator
find: ".Messages.MESSAGE_EDITED,",
replacement: {
match: /var .,.,.=(.)\.className,.=.\.message,.=.\.children,.=.\.content,.=.\.onUpdate/gm,
match: /let\{className:\i,message:\i[^}]*\}=(\i)/,
replace: "try {$1 && $self.INV_REGEX.test($1.message.content) ? $1.content.push($self.indicator()) : null } catch {};$&"
}
},