Skip to content

Commit

Permalink
Merge pull request #6736 from vector-im/doug/6654-fix-ipad-popovers
Browse files Browse the repository at this point in the history
Add missing source views for iPad.
  • Loading branch information
stefanceriu authored Sep 19, 2022
2 parents 60c8be0 + 1025e4d commit 8d02a33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Riot/Modules/Home/AllChats/AllChatsCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

Expand Down Expand Up @@ -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)
}

Expand Down
1 change: 1 addition & 0 deletions changelog.d/6654.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix crash presenting Sign Out or Invite to Element menu items on iPad.

0 comments on commit 8d02a33

Please sign in to comment.