This commit is contained in:
Thomas Ricouard 2023-02-11 07:20:14 +01:00
commit aea5c3e151

View file

@ -83,8 +83,12 @@ public struct ConversationsListView: View {
} }
} }
.refreshable { .refreshable {
// note: this Task wrapper should not be necessary, but it reportedly crashes without it
// when refreshing on an empty list
Task {
await viewModel.fetchConversations() await viewModel.fetchConversations()
} }
}
.onAppear { .onAppear {
viewModel.client = client viewModel.client = client
if client.isAuth { if client.isAuth {