diff --git a/Classes/Base.lproj/ChatsListView.xib b/Classes/Base.lproj/ChatsListView.xib index 0b4bd78ab..187a5fca5 100644 --- a/Classes/Base.lproj/ChatsListView.xib +++ b/Classes/Base.lproj/ChatsListView.xib @@ -14,7 +14,6 @@ - @@ -65,21 +64,6 @@ - - - - - - - - - - - - - - - @@ -241,7 +225,6 @@ - diff --git a/Classes/ChatsListView.h b/Classes/ChatsListView.h index fcfb0b068..939b87bbe 100644 --- a/Classes/ChatsListView.h +++ b/Classes/ChatsListView.h @@ -41,7 +41,6 @@ - (IBAction)onAddGroupChatClick:(id)event; - (IBAction)onAddClick:(id)event; -- (IBAction)onChatRoomSwiftClick:(id)event; - (IBAction)onEditionChangeClick:(id)sender; - (IBAction)onDeleteClick:(id)sender; diff --git a/Classes/ChatsListView.m b/Classes/ChatsListView.m index 8688632af..35ed3287d 100644 --- a/Classes/ChatsListView.m +++ b/Classes/ChatsListView.m @@ -160,10 +160,6 @@ static UICompositeViewDescription *compositeDescription = nil; [NSNotificationCenter.defaultCenter postNotificationName:kLinphoneChatCreateViewChange object:VIEW(ChatConversationCreateView) userInfo:nil]; } -- (IBAction)onChatRoomSwiftClick:(id)event { - [PhoneMainView.instance changeCurrentView:ChatConversationViewSwift.compositeViewDescription]; -} - - (IBAction)onAddClick:(id)event { [self newChatCreate:FALSE]; if (IPAD) diff --git a/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift b/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift index 9010d96be..8f9c6825b 100644 --- a/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift +++ b/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift @@ -67,22 +67,31 @@ import DropDown switch menu.dataSource[index] { case VoipTexts.dropdown_menu_chat_conversation_add_to_contact: cell.myImageView.image = UIImage(named: images[0]) + //cell.addGestureRecognizer(UITapGestureRecognizer(target: parent.self, action: #selector(dropDownGoToDevicesList))) case VoipTexts.dropdown_menu_chat_conversation_go_to_contact: cell.myImageView.image = UIImage(named: images[1]) + cell.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(dropDownGoToDevicesList))) case VoipTexts.conference_schedule_start: cell.myImageView.image = UIImage(named: images[2]) + cell.addGestureRecognizer(UITapGestureRecognizer(target: ChatConversationViewSwift.self, action: #selector(dropDownGoToDevicesList))) case VoipTexts.dropdown_menu_chat_conversation_conversation_device: cell.myImageView.image = UIImage(named: images[3]) + cell.addGestureRecognizer(UITapGestureRecognizer(target: ChatConversationViewSwift.self, action: #selector(dropDownGoToDevicesList))) case VoipTexts.dropdown_menu_chat_conversation_ephemeral_messages: cell.myImageView.image = UIImage(named: images[4]) + cell.addGestureRecognizer(UITapGestureRecognizer(target: ChatConversationViewSwift.self, action: #selector(dropDownGoToDevicesList))) case VoipTexts.dropdown_menu_chat_conversation_mute_notifications: cell.myImageView.image = UIImage(named: images[5]) + cell.addGestureRecognizer(UITapGestureRecognizer(target: ChatConversationViewSwift.self, action: #selector(dropDownGoToDevicesList))) case VoipTexts.dropdown_menu_chat_conversation_unmute_notifications: cell.myImageView.image = UIImage(named: images[6]) + cell.addGestureRecognizer(UITapGestureRecognizer(target: ChatConversationViewSwift.self, action: #selector(dropDownGoToDevicesList))) case VoipTexts.dropdown_menu_chat_conversation_delete_messages: cell.myImageView.image = UIImage(named: images[7]) + cell.addGestureRecognizer(UITapGestureRecognizer(target: ChatConversationViewSwift.self, action: #selector(dropDownGoToDevicesList))) default: cell.myImageView.image = UIImage(named: images[8]) + cell.addGestureRecognizer(UITapGestureRecognizer(target: ChatConversationViewSwift.self, action: #selector(dropDownGoToDevicesList))) } } } @@ -97,9 +106,6 @@ import DropDown action1: { self.onCallClick(cChatRoom: self.chatRoom?.getCobject) }, - action1Bis: { - self.onCallClick(cChatRoom: self.chatRoom?.getCobject) - }, action2: { self.tapChooseMenuItem(self.action2Button) }, @@ -228,7 +234,7 @@ import DropDown } - func alertActionGoToDevicesList() { + @objc func alertActionGoToDevicesList() { let notAskAgain = ConfigManager.instance().lpConfigBoolForKey(key: "confirmation_dialog_before_sas_call_not_ask_again"); if(!notAskAgain){ @@ -275,4 +281,8 @@ import DropDown @objc func dismissOnTapOutsideOrCancel(){ self.dismiss(animated: true, completion: nil) } + + @objc func dropDownGoToDevicesList() { + print("Aaaaaa") + } } diff --git a/Classes/Swift/Util/BackActionsNavigationView.swift b/Classes/Swift/Util/BackActionsNavigationView.swift index c0eed3771..9580b5193 100644 --- a/Classes/Swift/Util/BackActionsNavigationView.swift +++ b/Classes/Swift/Util/BackActionsNavigationView.swift @@ -49,7 +49,6 @@ import linphonesw func viewDidLoad(backAction : @escaping () -> Void, action1 : @escaping () -> Void, - action1Bis : @escaping () -> Void, action2 : @escaping () -> Void, action3 : @escaping () -> Void, title:String) { @@ -74,7 +73,7 @@ import linphonesw action1BisButton.toLeftOf(action2Button, withRightMargin: 20).matchParentHeight().done() action1Button.onClickAction = action1 - action1BisButton.onClickAction = action1Bis + action1BisButton.onClickAction = action1 action1BisButton.isHidden = true diff --git a/Podfile b/Podfile index 2bb4c5d52..30226b2a4 100644 --- a/Podfile +++ b/Podfile @@ -5,7 +5,11 @@ source "https://github.com/CocoaPods/Specs.git" def all_pods if ENV['PODFILE_PATH'].nil? +<<<<<<< HEAD pod 'linphone-sdk', '~>5.2.45' +======= + pod 'linphone-sdk', '~>5.2.1' +>>>>>>> 29e060dc1 (Minor changes) else pod 'linphone-sdk', :path => ENV['PODFILE_PATH'] # local sdk end