mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 18:01:27 +02:00
Request updates from relays when showing the People Lists in the top bar.
This commit is contained in:
@@ -893,7 +893,15 @@ fun RenderOption(option: Name) {
|
||||
horizontalArrangement = Arrangement.Center,
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
) {
|
||||
Text(text = option.name(), color = MaterialTheme.colorScheme.onSurface)
|
||||
val noteState by
|
||||
option.note
|
||||
.live()
|
||||
.metadata
|
||||
.observeAsState()
|
||||
|
||||
val name = (noteState?.note?.event as? PeopleListEvent)?.nameOrTitle() ?: option.note.dTag() ?: ""
|
||||
|
||||
Text(text = name, color = MaterialTheme.colorScheme.onSurface)
|
||||
}
|
||||
}
|
||||
is CommunityName -> {
|
||||
|
Reference in New Issue
Block a user