File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Core/Sources/ChatGPTChatTab Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,13 @@ public class ChatGPTChatTab: ChatTab {
122122 }
123123 } . store ( in: & cancellable)
124124
125- service. $systemPrompt. removeDuplicates ( ) . sink { _ in
125+ service. $systemPrompt. removeDuplicates ( ) . sink { [ weak self ] _ in
126126 Task { @MainActor [ weak self] in
127127 self ? . chatTabViewStore. send ( . tabContentUpdated)
128128 }
129129 } . store ( in: & cancellable)
130130
131- service. $extraSystemPrompt. removeDuplicates ( ) . sink { _ in
131+ service. $extraSystemPrompt. removeDuplicates ( ) . sink { [ weak self ] _ in
132132 Task { @MainActor [ weak self] in
133133 self ? . chatTabViewStore. send ( . tabContentUpdated)
134134 }
@@ -140,12 +140,11 @@ public class ChatGPTChatTab: ChatTab {
140140 }
141141 } . store ( in: & cancellable)
142142
143- viewStore. publisher. removeDuplicates ( )
144- . sink { [ weak self] _ in
145- Task { @MainActor [ weak self] in
146- self ? . chatTabViewStore. send ( . tabContentUpdated)
147- }
148- } . store ( in: & cancellable)
143+ viewStore. publisher. removeDuplicates ( ) . sink { [ weak self] _ in
144+ Task { @MainActor [ weak self] in
145+ self ? . chatTabViewStore. send ( . tabContentUpdated)
146+ }
147+ } . store ( in: & cancellable)
149148 }
150149}
151150
You can’t perform that action at this time.
0 commit comments