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)
}
val note = getOrCreateNote(nip19.hex)
val authorHex = nip19.author
if (note.author == null && authorHex != null) {
note.author = checkGetOrCreateUser(authorHex)
if (note.author == null) {
nip19.author?.let { note.author = checkGetOrCreateUser(it) }
}
}