diff --git a/Session/Conversations/ConversationVC+Interaction.swift b/Session/Conversations/ConversationVC+Interaction.swift index 10b7eecf5..efdc3ef47 100644 --- a/Session/Conversations/ConversationVC+Interaction.swift +++ b/Session/Conversations/ConversationVC+Interaction.swift @@ -1566,6 +1566,7 @@ extension ConversationVC: } } + Modal.setupForIPadIfNeeded(sheet, targetView: self.view) present(sheet, animated: true, completion: nil) } @@ -2416,6 +2417,7 @@ extension ConversationVC { }) alertVC.addAction(UIAlertAction(title: "TXT_CANCEL_TITLE".localized(), style: .cancel, handler: nil)) + Modal.setupForIPadIfNeeded(alertVC, targetView: self.view) self.present(alertVC, animated: true, completion: nil) } @@ -2463,6 +2465,7 @@ extension ConversationVC { }) alertVC.addAction(UIAlertAction(title: "TXT_CANCEL_TITLE".localized(), style: .cancel, handler: nil)) + Modal.setupForIPadIfNeeded(alertVC, targetView: self.view) self.present(alertVC, animated: true, completion: nil) } } diff --git a/Session/Home/Message Requests/MessageRequestsViewController.swift b/Session/Home/Message Requests/MessageRequestsViewController.swift index 619ff0792..2dfbbf89f 100644 --- a/Session/Home/Message Requests/MessageRequestsViewController.swift +++ b/Session/Home/Message Requests/MessageRequestsViewController.swift @@ -449,6 +449,8 @@ class MessageRequestsViewController: BaseVC, UITableViewDelegate, UITableViewDat } }) alertVC.addAction(UIAlertAction(title: "TXT_CANCEL_TITLE".localized(), style: .cancel, handler: nil)) + + Modal.setupForIPadIfNeeded(alertVC, targetView: self.view) self.present(alertVC, animated: true, completion: nil) } @@ -470,6 +472,8 @@ class MessageRequestsViewController: BaseVC, UITableViewDelegate, UITableViewDat }) alertVC.addAction(UIAlertAction(title: "TXT_CANCEL_TITLE".localized(), style: .cancel, handler: nil)) + + Modal.setupForIPadIfNeeded(alertVC, targetView: self.view) self.present(alertVC, animated: true, completion: nil) } @@ -501,6 +505,8 @@ class MessageRequestsViewController: BaseVC, UITableViewDelegate, UITableViewDat }) alertVC.addAction(UIAlertAction(title: "TXT_CANCEL_TITLE".localized(), style: .cancel, handler: nil)) + + Modal.setupForIPadIfNeeded(alertVC, targetView: self.view) self.present(alertVC, animated: true, completion: nil) } }