From ecd661c8016309646a3c93ec0ee7cd5ee33827b6 Mon Sep 17 00:00:00 2001 From: Luke <35193662+PopcornPanda@users.noreply.github.com> Date: Wed, 11 Jan 2023 12:06:09 +0100 Subject: [PATCH 1/5] Allow long sms in PromoSMS --- server/notification-providers/promosms.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/notification-providers/promosms.js b/server/notification-providers/promosms.js index 4f7e8f90..a9e7631e 100644 --- a/server/notification-providers/promosms.js +++ b/server/notification-providers/promosms.js @@ -20,6 +20,7 @@ class PromoSMS extends NotificationProvider { "recipients": [ notification.promosmsPhoneNumber ], //Lets remove non ascii char "text": msg.replace(/[^\x00-\x7F]/g, ""), + "long-sms": true, "type": Number(notification.promosmsSMSType), "sender": notification.promosmsSenderName }; From 2172112144fc5d66255c5edfc628b51bb6097a8b Mon Sep 17 00:00:00 2001 From: Luke <35193662+PopcornPanda@users.noreply.github.com> Date: Wed, 11 Jan 2023 12:13:47 +0100 Subject: [PATCH 2/5] Setting for allowing long sms --- server/notification-providers/promosms.js | 2 +- src/components/notifications/PromoSMS.vue | 4 ++++ src/languages/en.js | 1 + src/languages/pl.js | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/server/notification-providers/promosms.js b/server/notification-providers/promosms.js index a9e7631e..6992171b 100644 --- a/server/notification-providers/promosms.js +++ b/server/notification-providers/promosms.js @@ -20,7 +20,7 @@ class PromoSMS extends NotificationProvider { "recipients": [ notification.promosmsPhoneNumber ], //Lets remove non ascii char "text": msg.replace(/[^\x00-\x7F]/g, ""), - "long-sms": true, + "long-sms": notification.promosmsAllowLong, "type": Number(notification.promosmsSMSType), "sender": notification.promosmsSenderName }; diff --git a/src/components/notifications/PromoSMS.vue b/src/components/notifications/PromoSMS.vue index 03c02222..9fe9c217 100644 --- a/src/components/notifications/PromoSMS.vue +++ b/src/components/notifications/PromoSMS.vue @@ -26,6 +26,10 @@ +
+ + +