mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Request updates from relays when showing the People Lists in the top bar.
This commit is contained in:
parent
e28b385038
commit
31e2fcdc21
@ -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 -> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user