Fix message logger patch (#431)

This commit is contained in:
Nuckyz 2023-01-18 20:36:31 -03:00 committed by GitHub
parent 08a2030bbc
commit c4d2b4a8cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -259,8 +259,8 @@ export default definePlugin({
replace: "$1,deleted=$2.attachment?.deleted,"
},
{
match: /(hiddenSpoilers:\w,className:)/,
replace: "$1 (deleted ? 'messageLogger-deleted-attachment ' : '') +"
match: /\["className","attachment","inlineMedia".+?className:/,
replace: "$& (deleted ? 'messageLogger-deleted-attachment ' : '') +"
}
]
},