mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-07 05:22:34 +00:00
Stream event infinity
This commit is contained in:
parent
b963a74dc4
commit
330a20be37
1 changed files with 7 additions and 0 deletions
|
@ -107,6 +107,13 @@ public struct TimelineView: View {
|
|||
await viewModel.fetchStatuses()
|
||||
}
|
||||
}
|
||||
|
||||
Task {
|
||||
while true {
|
||||
try await Task.sleep(for: .seconds(1.5))
|
||||
viewModel.handleEvent(event: StreamEventUpdate(status: .placeholder()), currentAccount: account)
|
||||
}
|
||||
}
|
||||
}
|
||||
.onDisappear {
|
||||
viewModel.isTimelineVisible = false
|
||||
|
|
Loading…
Reference in a new issue