mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Revert "Adding header section only when necessary"
This reverts commit 96ed30ccc4
.
This commit is contained in:
parent
96ed30ccc4
commit
11dacbab81
1 changed files with 3 additions and 9 deletions
|
@ -88,18 +88,12 @@ class AutocompleteMemberPresenter @AssistedInject constructor(context: Context,
|
|||
|
||||
val items = mutableListOf<AutocompleteMemberItem>().apply {
|
||||
if (members.isNotEmpty()) {
|
||||
if (everyone != null) {
|
||||
// add header only when there is everyone tag as well
|
||||
add(membersHeader)
|
||||
}
|
||||
add(membersHeader)
|
||||
addAll(members)
|
||||
}
|
||||
everyone?.let {
|
||||
if (members.isNotEmpty()) {
|
||||
// add header only when there are members as well
|
||||
val everyoneHeader = createEveryoneHeader()
|
||||
add(everyoneHeader)
|
||||
}
|
||||
val everyoneHeader = createEveryoneHeader()
|
||||
add(everyoneHeader)
|
||||
add(it)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue