Skip to content

Commit

Permalink
messageLogger: fix niche bug ignoring edits when content is same (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
HAHALOSAH committed May 2, 2024
1 parent a055b1d commit 85d6d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/messageLogger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default definePlugin({
replace: "$1" +
".update($3,m =>" +
" (($2.message.flags & 64) === 64 || $self.shouldIgnore($2.message, true)) ? m :" +
" $2.message.content !== m.editHistory?.[0]?.content && $2.message.content !== m.content ?" +
" $2.message.content !== m.content ?" +
" m.set('editHistory',[...(m.editHistory || []), $self.makeEdit($2.message, m)]) :" +
" m" +
")" +
Expand Down

0 comments on commit 85d6d74

Please sign in to comment.