ios: update the list of chats when exiting background (#764)

This commit is contained in:
Evgeny Poberezkin
2022-07-01 10:38:12 +01:00
committed by GitHub
parent 96866c7a5d
commit 1e63eb3752

View File

@@ -62,6 +62,11 @@ struct SimpleXApp: App {
activateChat()
if chatModel.chatRunning == true {
ChatReceiver.shared.start()
do {
chatModel.chats = try apiGetChats()
} catch let error {
logger.error("apiGetChats: cannot update chats \(responseError(error))")
}
}
doAuthenticate = authenticationExpired()
default: