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 46bb960fcb
commit 63f7defb07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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(