ios: show spinners when connecting contacts (#628)

* ios: show spinners when connecting contacts

* move status to the corner
This commit is contained in:
Evgeny Poberezkin
2022-05-10 08:04:18 +01:00
committed by GitHub
parent 412982cc01
commit c0528baba7
2 changed files with 35 additions and 27 deletions
+2 -1
View File
@@ -276,10 +276,11 @@ final class Chat: ObservableObject, Identifiable {
self.chatStats = cData.chatStats
}
init(chatInfo: ChatInfo, chatItems: [ChatItem] = [], chatStats: ChatStats = ChatStats()) {
init(chatInfo: ChatInfo, chatItems: [ChatItem] = [], chatStats: ChatStats = ChatStats(), serverInfo: ServerInfo = ServerInfo(networkStatus: .unknown)) {
self.chatInfo = chatInfo
self.chatItems = chatItems
self.chatStats = chatStats
self.serverInfo = serverInfo
}
var id: ChatId { get { chatInfo.id } }