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,
|
horizontalArrangement = Arrangement.Center,
|
||||||
modifier = Modifier.fillMaxWidth(),
|
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 -> {
|
is CommunityName -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user