fix(MessageLogger): don't break attachment edits

This commit is contained in:
Vendicated 2024-07-05 18:43:51 +02:00
parent c3f7950f2e
commit 319a99c293
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -337,7 +337,7 @@ export default definePlugin({
// Pass through editHistory & deleted & original attachments to the "edited message" transformer
match: /(?<=null!=\i\.edited_timestamp\)return )\i\(\i,\{reactions:(\i)\.reactions.{0,50}\}\)/,
replace:
"Object.assign($&,{ deleted:$1.deleted, editHistory:$1.editHistory, attachments:$1.attachments })"
"Object.assign($&,{ deleted:$1.deleted, editHistory:$1.editHistory })"
},
{