diff --git a/vector/src/main/java/im/vector/app/features/autocomplete/member/AutocompleteMemberPresenter.kt b/vector/src/main/java/im/vector/app/features/autocomplete/member/AutocompleteMemberPresenter.kt index b646e22f17..ab4b598153 100644 --- a/vector/src/main/java/im/vector/app/features/autocomplete/member/AutocompleteMemberPresenter.kt +++ b/vector/src/main/java/im/vector/app/features/autocomplete/member/AutocompleteMemberPresenter.kt @@ -88,18 +88,12 @@ class AutocompleteMemberPresenter @AssistedInject constructor(context: Context, val items = mutableListOf().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) } }