mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 16:31:00 +00:00
Fix local timeline -> home switch
This commit is contained in:
parent
ad7bc999d3
commit
9320b2f114
1 changed files with 5 additions and 1 deletions
|
@ -161,7 +161,11 @@ public struct TimelineView: View {
|
||||||
default:
|
default:
|
||||||
switch oldValue {
|
switch oldValue {
|
||||||
case let .remoteLocal(server, _):
|
case let .remoteLocal(server, _):
|
||||||
viewModel.client = Client(server: server)
|
if newValue == .latest {
|
||||||
|
viewModel.client = Client(server: server)
|
||||||
|
} else {
|
||||||
|
viewModel.client = client
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
viewModel.client = client
|
viewModel.client = client
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue