Skip to content

Commit

Permalink
🐛 Fix logic for deleting duplicate MD5 pasted items (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
guiyanakuang authored Feb 19, 2024
1 parent 10a55f1 commit d48fe4c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ class ClipRealm(private val realm: Realm): ClipDao {
}
doDeleteClipData {
query(ClipData::class, "md5 == $0", clipData.md5)
.query("createTime > $0", DateUtils.getPrevDay()).find().toList()
.query("createTime > $0", DateUtils.getPrevDay())
.query("clipId != $0", clipData.clipId)
.query("appInstanceId != $0", clipData.appInstanceId)
.find().toList()
}
}

Expand Down

0 comments on commit d48fe4c

Please sign in to comment.