Skip to content

Commit 5e534b3

Browse files
committed
Fix
1 parent 91c6f81 commit 5e534b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,12 @@ struct GUI: ReducerProtocol {
219219
#endif
220220
}
221221
}
222-
}.onChange(of: \.chatTabGroup.tabInfo) { _, _ in
222+
}.onChange(of: \.chatTabGroup.tabInfo) { old, new in
223223
Reduce { _, _ in
224-
.run { send in
224+
guard old.map(\.id) != new.map(\.id) else {
225+
return .none
226+
}
227+
return .run { send in
225228
#if canImport(ChatTabPersistent)
226229
await send(.persistent(.chatOrderChanged))
227230
#endif

0 commit comments

Comments
 (0)