Skip to content

Commit d4fe170

Browse files
committed
Fix hiding chat panel
1 parent 51f5cb9 commit d4fe170

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ public struct WidgetFeature: ReducerProtocol {
4949
isProcessingCounters: circularWidgetState.isProcessingCounters,
5050
isProcessing: circularWidgetState.isProcessing,
5151
isDisplayingContent: {
52-
if chatPanelState.isPanelDisplayed, chatPanelState.chatTapGroup.tabs.isEmpty {
52+
if chatPanelState.isPanelDisplayed,
53+
!chatPanelState.chatTapGroup.tabs.isEmpty
54+
{
5355
return true
5456
}
5557
if panelState.sharedPanelState.isPanelDisplayed,
@@ -64,10 +66,11 @@ public struct WidgetFeature: ReducerProtocol {
6466
}
6567
return false
6668
}(),
67-
isContentEmpty: chatPanelState.chatTapGroup.tabs.isEmpty && panelState.sharedPanelState
68-
.content == nil,
69+
isContentEmpty: chatPanelState.chatTapGroup.tabs.isEmpty
70+
&& panelState.sharedPanelState.content == nil,
6971
isChatPanelDetached: chatPanelState.chatPanelInASeparateWindow,
70-
isChatOpen: chatPanelState.isPanelDisplayed && chatPanelState.chatTapGroup.tabs.isEmpty,
72+
isChatOpen: chatPanelState.isPanelDisplayed
73+
&& !chatPanelState.chatTapGroup.tabs.isEmpty,
7174
animationProgress: circularWidgetState.animationProgress
7275
)
7376
}

0 commit comments

Comments
 (0)