From 62fe23f0082e53d5c9515b5035ebb97b558b1926 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Fri, 13 Mar 2026 10:03:17 +0000 Subject: [PATCH] android, desktop: fix opening pending connection from chat list (#6674) --- .../kotlin/chat/simplex/common/views/chat/ChatView.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt index 1344f13c84..c518b156d9 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt @@ -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) } },