android, desktop: fix opening pending connection from chat list (#6674)

This commit is contained in:
spaced4ndy
2026-03-13 10:03:17 +00:00
committed by GitHub
parent 9f15c34184
commit 62fe23f008
@@ -178,7 +178,8 @@ fun ChatView(
contentFilter.value = null
availableContent.value = ContentFilter.initialList
selectedChatItems.value = null
if (chatsCtx.secondaryContextFilter == null) {
val cInfo = activeChat.value?.chatInfo
if (chatsCtx.secondaryContextFilter == null && (cInfo is ChatInfo.Direct || cInfo is ChatInfo.Group || cInfo is ChatInfo.Local)) {
updateAvailableContent(chatRh, activeChat, availableContent)
}
if (chat.chatInfo is ChatInfo.Direct && chat.chatInfo.contact.activeConn != null) {
@@ -757,7 +758,8 @@ fun ChatView(
searchText.value = ""
contentFilter.value = null
// Update available content types when search closes
if (chatsCtx.secondaryContextFilter == null) {
val cInfo = activeChat.value?.chatInfo
if (chatsCtx.secondaryContextFilter == null && (cInfo is ChatInfo.Direct || cInfo is ChatInfo.Group || cInfo is ChatInfo.Local)) {
updateAvailableContent(chatRh, activeChat, availableContent)
}
},