forked from mirrors/linphone-iphone
Remove updateIMDNList in UIChatCell and hide drop down menu when app moved to background/foreground
This commit is contained in:
parent
91be4e530b
commit
20ef204f42
2 changed files with 7 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -249,6 +249,9 @@ 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){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue