MessageLogger: fix attachment ignore (#1989)
This commit is contained in:
parent
c080a0eaac
commit
6578eb487e
@ -302,6 +302,7 @@ export default definePlugin({
|
||||
match: /attachments:(\i)\((\i)\)/,
|
||||
replace:
|
||||
"attachments: $1((() => {" +
|
||||
" if ($self.shouldIgnore($2)) return $2;" +
|
||||
" let old = arguments[1]?.attachments;" +
|
||||
" if (!old) return $2;" +
|
||||
" let new_ = $2.attachments?.map(a => a.id) ?? [];" +
|
||||
|
Loading…
x
Reference in New Issue
Block a user