Merge pull request #6736 from vector-im/doug/6654-fix-ipad-popovers

Add missing source views for iPad.
This commit is contained in:
Stefan Ceriu
2022-09-19 13:06:51 +03:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
@@ -344,7 +344,8 @@ class AllChatsCoordinator: NSObject, SplitViewMasterCoordinatorProtocol {
var subMenuActions: [UIAction] = []
if BuildSettings.sideMenuShowInviteFriends {
subMenuActions.append(UIAction(title: VectorL10n.sideMenuActionInviteFriends, image: UIImage(systemName: "square.and.arrow.up.fill")) { [weak self] action in
self?.showInviteFriends(from: nil)
guard let self = self else { return }
self.showInviteFriends(from: self.avatarMenuButton)
})
}
@@ -585,7 +586,7 @@ class AllChatsCoordinator: NSObject, SplitViewMasterCoordinatorProtocol {
signOutAlertPresenter.present(for: keyBackup.state,
areThereKeysToBackup: keyBackup.hasKeysToBackup,
from: self.allChatsViewController,
sourceView: nil,
sourceView: avatarMenuButton,
animated: true)
}
+1
View File
@@ -0,0 +1 @@
Fix crash presenting Sign Out or Invite to Element menu items on iPad.