From 1e63eb3752552f7217ea33e4766d8470339d7e0b Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Fri, 1 Jul 2022 10:38:12 +0100 Subject: [PATCH] ios: update the list of chats when exiting background (#764) --- apps/ios/Shared/SimpleXApp.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/ios/Shared/SimpleXApp.swift b/apps/ios/Shared/SimpleXApp.swift index feb6721476..343691adef 100644 --- a/apps/ios/Shared/SimpleXApp.swift +++ b/apps/ios/Shared/SimpleXApp.swift @@ -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: