We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91c6f81 commit 5e534b3Copy full SHA for 5e534b3
Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift
@@ -219,9 +219,12 @@ struct GUI: ReducerProtocol {
219
#endif
220
}
221
222
- }.onChange(of: \.chatTabGroup.tabInfo) { _, _ in
+ }.onChange(of: \.chatTabGroup.tabInfo) { old, new in
223
Reduce { _, _ in
224
- .run { send in
+ guard old.map(\.id) != new.map(\.id) else {
225
+ return .none
226
+ }
227
+ return .run { send in
228
#if canImport(ChatTabPersistent)
229
await send(.persistent(.chatOrderChanged))
230
0 commit comments