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