From 51df1a836c8f6cb52ce5190dfb952d5fc60cb1a7 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Thu, 20 Jul 2023 10:29:23 +0200 Subject: [PATCH] Revert "Remove updateIMDNList in UIChatCell and hide drop down menu when app moved to background/foreground" This reverts commit 20ef204f42da2474df2d8c382f7207738a5a21ad. --- Classes/LinphoneUI/UIChatCell.m | 8 ++++---- Classes/Swift/Chat/Views/ChatConversationViewSwift.swift | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Classes/LinphoneUI/UIChatCell.m b/Classes/LinphoneUI/UIChatCell.m index c248a81cb..5c2b77ba6 100644 --- a/Classes/LinphoneUI/UIChatCell.m +++ b/Classes/LinphoneUI/UIChatCell.m @@ -240,10 +240,10 @@ static void message_status(LinphoneChatMessage *msg, LinphoneChatMessageState st } static void participant_imdn_status(LinphoneChatMessage* msg, const LinphoneParticipantImdnState *state) { - //dispatch_async(dispatch_get_main_queue(), ^{ - //ChatConversationImdnView *imdnView = VIEW(ChatConversationImdnView); - //[imdnView updateImdnList]; - //}); + dispatch_async(dispatch_get_main_queue(), ^{ + ChatConversationImdnView *imdnView = VIEW(ChatConversationImdnView); + [imdnView updateImdnList]; + }); } @end diff --git a/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift b/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift index 60fa47c6f..893fe9fc4 100644 --- a/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift +++ b/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift @@ -249,9 +249,6 @@ class ChatConversationViewSwift: BackActionsNavigationView, PHPickerViewControll } @objc func appMovedToForeground() { - if (tableControllerSwift.menu != nil && !tableControllerSwift.menu!.isHidden) { - tableControllerSwift.menu!.hide() - } if(PhoneMainView.instance().currentView == ChatConversationViewSwift.compositeViewDescription()){ let lc: Core = Core.getSwiftObject(cObject: LinphoneManager.getLc()) if(lc.globalState.rawValue == LinphoneGlobalOn.rawValue){