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