diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:53:09 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-07 22:53:09 +0000 |
| commit | 2adb5bb500bdc5b58ce1606667ac85be5a6ad96b (patch) | |
| tree | 1e3ae437bb34f088cb143f34323d9417ee08b816 /src/app.js | |
| parent | 92435d3844c7ba35917ec4eb9106d57f15499249 (diff) | |
Only forwards texts to other people
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |
