case-eee / kackle

MIT License
1 stars 0 forks source link

Remove unsubscribe text #20

Closed s-espinosa closed 7 years ago

s-espinosa commented 7 years ago

@case-eee Believe this is consistent with the behavior we discussed regarding allowing a user to unsubscribe via text if someone had entered a wrong number, etc.

One note: I found that sending unsubscribe back to these messages triggers something on the Twilio side to not allow the app to send messages to a particular phone number. Twilio still sends that info through to our app in a POST request, so I'm deactivating the users on our side as well, but that may be slightly duplicative. Seems that this functionality is built into Twilio to some degree, but still saves us from attempting to send the daily SMS and gives us an accurate count of active users.

Primary Changes

Secondary Changes

Questions

Let me know what you think!

s-espinosa commented 7 years ago

Added tests and refactored Sms::UsersController to avoid deprecation warning.

s-espinosa commented 7 years ago

@case-eee Implemented change to default a user's active status to false.

s-espinosa commented 7 years ago

@case-eee Adjusted the routes from /sms/users to /messaging/twilio/users per conversation above. Let me know what you think!

case-eee commented 7 years ago

@s-espinosa I think this looks good!