[ios] Pass the phone to didPressCall

This will allow us to know which phone the user has picked when we've
added support for multiple phone numbers.

Signed-off-by: Eugene Nikolsky <omaps@egeek.me>
This commit is contained in:
Eugene Nikolsky
2025-04-02 20:16:45 +03:00
committed by Konstantin Pastbin
parent 56c4918e93
commit a3ba5c53b6
2 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ class InfoItemViewController: UIViewController {
protocol PlacePageInfoViewControllerDelegate: AnyObject {
var shouldShowOpenInApp: Bool { get }
func didPressCall()
func didPressCall(to phone: PlacePagePhone)
func didPressWebsite()
func didPressWebsiteMenu()
func didPressWikipedia()
@@ -166,7 +166,7 @@ class PlacePageInfoViewController: UIViewController {
icon: UIImage(named: "ic_placepage_phone_number"),
style: cellStyle,
tapHandler: { [weak self] in
self?.delegate?.didPressCall()
self?.delegate?.didPressCall(to: phone)
},
longPressHandler: { [weak self] in
self?.delegate?.didCopy(phone.phone)

View File

@@ -65,8 +65,8 @@ extension PlacePageInteractor: PlacePageInfoViewControllerDelegate {
!OpenInApplication.availableApps.isEmpty
}
func didPressCall() {
MWMPlacePageManagerHelper.call(placePageData.infoData?.phone)
func didPressCall(to phone: PlacePagePhone) {
MWMPlacePageManagerHelper.call(phone)
}
func didPressWebsite() {