Skip to content

Commit 09d10b7

Browse files
committed
Fix that empty chat panel can't be hidden by clicking circular widget
1 parent d704e5a commit 09d10b7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ public struct WidgetFeature: ReducerProtocol {
4949
isProcessingCounters: circularWidgetState.isProcessingCounters,
5050
isProcessing: circularWidgetState.isProcessing,
5151
isDisplayingContent: {
52-
if chatPanelState.isPanelDisplayed,
53-
!chatPanelState.chatTapGroup.tabs.isEmpty
54-
{
52+
if chatPanelState.isPanelDisplayed {
5553
return true
5654
}
5755
if panelState.sharedPanelState.isPanelDisplayed,
@@ -69,8 +67,7 @@ public struct WidgetFeature: ReducerProtocol {
6967
isContentEmpty: chatPanelState.chatTapGroup.tabs.isEmpty
7068
&& panelState.sharedPanelState.content == nil,
7169
isChatPanelDetached: chatPanelState.chatPanelInASeparateWindow,
72-
isChatOpen: chatPanelState.isPanelDisplayed
73-
&& !chatPanelState.chatTapGroup.tabs.isEmpty,
70+
isChatOpen: chatPanelState.isPanelDisplayed,
7471
animationProgress: circularWidgetState.animationProgress
7572
)
7673
}

0 commit comments

Comments
 (0)