limit ml patch length

This commit is contained in:
sadan 2026-01-23 18:29:26 -05:00
parent 2ad7b3cec1
commit 597c7414b1
No known key found for this signature in database

View file

@ -471,7 +471,7 @@ export default definePlugin({
find: ".SEND_FAILED,",
replacement: {
// Render editHistory behind the message content
match: /\]:\i.isUnsupported.+?,children:\[/,
match: /\]:\i.isUnsupported.{0,20}?,children:\[/,
replace: "$&arguments[0]?.message?.editHistory?.length>0&&$self.renderEdits(arguments[0]),"
}
},