Request updates from relays when showing the People Lists in the top bar.

This commit is contained in:
Vitor Pamplona 2024-07-11 11:33:31 -04:00
parent e28b385038
commit 31e2fcdc21

View File

@ -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 -> {