Fix click on secure badge

This commit is contained in:
Benoit Martins 2023-07-21 11:00:32 +02:00
parent e00b28b862
commit bf0ffaeb96
2 changed files with 4 additions and 2 deletions

View file

@ -173,6 +173,8 @@ class ChatConversationViewSwift: BackActionsNavigationView, PHPickerViewControll
}
*/
contentMessageView.floatingButton.addTarget(self, action: #selector(self.alertActionGoToDevicesList), for: .touchUpInside)
ChatConversationViewModel.sharedModel.isComposing.observe { compose in
if((compose! && self.contentMessageView.isComposingView.isHidden)||(!compose! && !self.contentMessageView.isComposingView.isHidden)){
self.setComposingVisible(compose!, withDelay: 0.3)
@ -709,7 +711,7 @@ class ChatConversationViewSwift: BackActionsNavigationView, PHPickerViewControll
}
func alertActionGoToDevicesList() {
@objc func alertActionGoToDevicesList() {
let notAskAgain = ConfigManager.instance().lpConfigBoolForKey(key: "confirmation_dialog_before_sas_call_not_ask_again");
if(!notAskAgain){

View file

@ -163,7 +163,7 @@ class ContentMessageView: UIViewController {
constraintLandscapeFloatingButton = floatingButton.rightAnchor.constraint(equalTo: self.view.rightAnchor, constant: -56)
if UIDevice.current.orientation.isLandscape {
constraintLandscapeFloatingButton!.isActive = true
} else if UIDevice.current.orientation.isPortrait {
} else {
constraintFloatingButton!.isActive = true
}
floatingButton.topAnchor.constraint(equalTo: self.view.layoutMarginsGuide.topAnchor, constant: top_bar_height).isActive = true