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
1 changed files with 2 additions and 2 deletions

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 ' : '') +"
}
]
},