mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-26 18:04:44 +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 {
|
.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 {
|
.onAppear {
|
||||||
viewModel.client = client
|
viewModel.client = client
|
||||||
|
|
Loading…
Reference in a new issue