Fix local timeline -> home switch

This commit is contained in:
Thomas Ricouard 2024-01-21 17:05:05 +01:00
parent ad7bc999d3
commit 9320b2f114

View file

@ -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
}