Load user data before updating, prefer newer events in repository over old ones with the same created_at, add list update utils

This commit is contained in:
Jon Staab
2025-08-01 13:09:50 -07:00
parent bd67f2763d
commit 1f5f869f7c
9 changed files with 119 additions and 11 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ export class Repository<E extends HashedEvent = TrustedEvent> extends Emitter {
if (duplicate) {
// If our event is younger than the duplicate, we're done
if (event.created_at <= duplicate.created_at) {
if (event.created_at < duplicate.created_at) {
return false
}