mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Revert "Adding header section only when necessary"
This reverts commit 96ed30ccc4
.
This commit is contained in:
parent
96ed30ccc4
commit
11dacbab81
@ -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 New Issue
Block a user