Skip to content

Commit

Permalink
Add missing source views for iPad.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Sep 16, 2022
1 parent 60c8be0 commit 1025e4d
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 1025e4d

Please sign in to comment.