mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 02:01:02 +00:00
Fix refresh of empty conversations (#778)
This commit is contained in:
parent
4e2d15eff6
commit
fe1248fec6
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,11 @@ public struct ConversationsListView: View {
|
|||
}
|
||||
}
|
||||
.refreshable {
|
||||
await viewModel.fetchConversations()
|
||||
// note: this Task wrapper should not be necessary, but it reportedly crashes without it
|
||||
// when refreshing on an empty list
|
||||
Task {
|
||||
await viewModel.fetchConversations()
|
||||
}
|
||||
}
|
||||
.onAppear {
|
||||
viewModel.client = client
|
||||
|
|
Loading…
Reference in a new issue