From d3ab85a59d9deeb219fffc00500c7ba031f08869 Mon Sep 17 00:00:00 2001 From: NenoR96 Date: Wed, 9 Mar 2022 19:18:04 +0100 Subject: [PATCH] fix: ios not taking spaces for phone call action item --- widget/controllers/widget.home.controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widget/controllers/widget.home.controller.js b/widget/controllers/widget.home.controller.js index ad4b679..3cfe218 100644 --- a/widget/controllers/widget.home.controller.js +++ b/widget/controllers/widget.home.controller.js @@ -226,6 +226,11 @@ }; WidgetHome.openLinks = function (actionItems, $event) { + actionItems.map((el, index) => { + if (el.action === 'callNumber') + actionItems[index].phoneNumber = el.phoneNumber.replace(/\s/g, ''); + }); + if (actionItems && actionItems.length) { var options = {}; var callback = function (error, result) {