diff --git a/Linphone/UI/Main/Conversations/Fragments/ConversationsListFragment.swift b/Linphone/UI/Main/Conversations/Fragments/ConversationsListFragment.swift index 38212c570..da989aa4f 100644 --- a/Linphone/UI/Main/Conversations/Fragments/ConversationsListFragment.swift +++ b/Linphone/UI/Main/Conversations/Fragments/ConversationsListFragment.swift @@ -22,6 +22,8 @@ import linphonesw struct ConversationsListFragment: View { + @Environment(\.scenePhase) var scenePhase + @EnvironmentObject var navigationManager: NavigationManager @ObservedObject var conversationViewModel: ConversationViewModel @@ -67,6 +69,11 @@ struct ConversationsListFragment: View { .padding(.all) ) } + .onChange(of: scenePhase) { newPhase in + if newPhase == .active { + conversationsListViewModel.computeChatRoomsList(filter: "") + } + } .navigationTitle("") .navigationBarHidden(true) }