mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-28 14:19:47 +00:00
ios: update the list of chats when exiting background (#764)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user