android: move reachable toolbar card above Private notes for the new users (#4633)

This commit is contained in:
Evgeny
2024-08-08 20:49:00 +01:00
committed by GitHub
parent 38d46891a1
commit 5006742577
@@ -674,7 +674,7 @@ private fun ChatList(chatModel: ChatModel, searchText: MutableState<TextFieldVal
}
}
}
if (appPlatform.isAndroid && !oneHandUICardShown.value) {
if (appPlatform.isAndroid && !oneHandUICardShown.value && chats.count() > 1) {
item {
ToggleChatListCard()
}
@@ -685,6 +685,11 @@ private fun ChatList(chatModel: ChatModel, searchText: MutableState<TextFieldVal
} }
ChatListNavLinkView(chat, nextChatSelected)
}
if (appPlatform.isAndroid && !oneHandUICardShown.value && chats.count() <= 1) {
item {
ToggleChatListCard()
}
}
}
if (chats.isEmpty() && chatModel.chats.value.isNotEmpty()) {
Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {