summaryrefslogtreecommitdiff
path: root/src/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.js')
-rw-r--r--src/app.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app.js b/src/app.js
index 1e2ae98..336eb9f 100644
--- a/src/app.js
+++ b/src/app.js
@@ -28,8 +28,7 @@ app.post('/sms', (req, res) => {
if (isSubscribed(senderPhoneNumber)) {
const senderSubscription = getSubscriptionFromNumber(senderPhoneNumber);
- // TODO: enable filter. Just disabling so I can get the forwarded text to my own phone to check it works.
- const otherSubscriptions = getSubscriptions()/* .filter(sub => sub.number != senderPhoneNumber) */;
+ const otherSubscriptions = getSubscriptions().filter(sub => sub.number !== senderPhoneNumber);
const forwardedMessage = `${senderSubscription.name} said: ${body}`;
sendTextMessage(otherSubscriptions, forwardedMessage);