Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Viktor de Pomian Sandell
1,343 PointsRecall and/or delete options
Is it possible to add a recall button to a messenger app or even a delete button? When using the delete button it should only delete one message and not the whole conversation.
I know that most(maybe all) services out there says that when the message is sent, it's "game over". If you were to create an app that made this possible, does everything have to be server-side when it comes to the conversation?
Example:
User 1 sends message, Database enters the message and outputs it in the correct conversation, User 2 receives it,
User 1 deletes the message, Database removes the message and only that message, User 2 opens the conversation again, message has been deleted.
I put his in iOS but maybe it should be in General Disc, move it if you see fit.
Thanks!
1 Answer
Tommy Choe
38,156 PointsHey Viktor, I'm just gonna share my thoughts on this. I don't think it's possible to revert the sent message. The only way I can see this working is if the server holds the message for a set time before actually delivering the message to the recipient. However, if this was done, people may not want to use this app since messages won't be sent in realtime. I guess it could make sense if you wanted to make it more like an email and less like real-time messaging.
Just note that my answer is merely a speculation/opinion.