Add missing source views for iPad.

This commit is contained in:
Doug 2022-09-16 21:50:01 +01:00
parent 60c8be0e8f
commit 1025e4dc5c
2 changed files with 4 additions and 2 deletions

View file

@ -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
changelog.d/6654.bugfix Normal file
View file

@ -0,0 +1 @@
Fix crash presenting Sign Out or Invite to Element menu items on iPad.