mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-28 14:19:47 +00:00
android, desktop: fix opening pending connection from chat list (#6674)
This commit is contained in:
+4
-2
@@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user