mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-03 20:53:30 +02:00
No need for not null checks
This commit is contained in:
@@ -92,8 +92,6 @@ class User(
|
||||
|
||||
fun toNostrUri() = "nostr:${toNProfile()}"
|
||||
|
||||
override fun toString(): String = pubkeyHex
|
||||
|
||||
fun toBestShortFirstName(): String {
|
||||
val fullName = toBestDisplayName()
|
||||
|
||||
|
@@ -88,7 +88,7 @@ fun WatchAuthorWithBlank(
|
||||
inner(noteAuthor)
|
||||
} else {
|
||||
val authorState by observeNote(baseNote, accountViewModel)
|
||||
CrossfadeIfEnabled(targetState = authorState?.note?.author, modifier = modifier, label = "WatchAuthorWithBlank", accountViewModel = accountViewModel) { newAuthor ->
|
||||
CrossfadeIfEnabled(targetState = authorState.note.author, modifier = modifier, label = "WatchAuthorWithBlank", accountViewModel = accountViewModel) { newAuthor ->
|
||||
inner(newAuthor)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user