Code review:

-  collapse author-hint null check in consume(NEvent)
This commit is contained in:
davotoula
2026-05-15 16:57:35 +02:00
parent a36873b15c
commit c9087fb041
@@ -2598,9 +2598,8 @@ object LocalCache : ILocalCache, ICacheProvider {
relayHints.addEvent(nip19.hex, relayHint) relayHints.addEvent(nip19.hex, relayHint)
} }
val note = getOrCreateNote(nip19.hex) val note = getOrCreateNote(nip19.hex)
val authorHex = nip19.author if (note.author == null) {
if (note.author == null && authorHex != null) { nip19.author?.let { note.author = checkGetOrCreateUser(it) }
note.author = checkGetOrCreateUser(authorHex)
} }
} }