From 9320b2f11457e1486391df8dec15240e1a3ecc57 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sun, 21 Jan 2024 17:05:05 +0100 Subject: [PATCH] Fix local timeline -> home switch --- Packages/Timeline/Sources/Timeline/View/TimelineView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Packages/Timeline/Sources/Timeline/View/TimelineView.swift b/Packages/Timeline/Sources/Timeline/View/TimelineView.swift index 64454deb..9618bd85 100644 --- a/Packages/Timeline/Sources/Timeline/View/TimelineView.swift +++ b/Packages/Timeline/Sources/Timeline/View/TimelineView.swift @@ -161,7 +161,11 @@ public struct TimelineView: View { default: switch oldValue { case let .remoteLocal(server, _): - viewModel.client = Client(server: server) + if newValue == .latest { + viewModel.client = Client(server: server) + } else { + viewModel.client = client + } default: viewModel.client = client }