Display members section when there are members in the room, not admins (#2679)

* Display members section when there are members in the room, not admins

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
Jorge Martin Espinosa
2024-04-09 15:08:40 +02:00
committed by GitHub
parent 354ab469ba
commit 8757d1b5ad
3 changed files with 5 additions and 5 deletions

View File

@@ -284,7 +284,7 @@ private fun SearchResultsList(
)
}
}
if (searchResults.admins.isNotEmpty()) {
if (searchResults.members.isNotEmpty()) {
stickyHeader { ListSectionHeader(text = stringResource(R.string.screen_room_member_list_mode_members)) }
items(searchResults.members, key = { it.userId }) { roomMember ->
ListMemberItem(