Skip to content

Commit

Permalink
comment reload
Browse files Browse the repository at this point in the history
  • Loading branch information
spaced4ndy committed Sep 20, 2023
1 parent 22c8372 commit c037dee
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/ios/Shared/Views/ChatList/ChatListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ struct ChatListView: View {
Task {
do {
try await reconnectAllServers()
await MainActor.run {
chatModel.chats.removeAll()
}
let chats = try apiGetChats()
await MainActor.run {
chatModel.chats = chats.map { Chat.init($0) }
}
// await MainActor.run {
// chatModel.chats.removeAll()
// }
// let chats = try apiGetChats()
// await MainActor.run {
// chatModel.chats = chats.map { Chat.init($0) }
// }
} catch let error {
AlertManager.shared.showAlertMsg(title: "Error", message: "\(responseError(error))")
}
Expand Down

0 comments on commit c037dee

Please sign in to comment.