shybot to help users take back pictures they had shared #53

Open
opened 2024-11-24 22:50:50 +00:00 by noah · 0 comments
Owner

A user story:

  • Bob logs onto the chat room and shares a picture on one of the public channels.
  • He then refreshes the page or closes it on accident, and when returning to chat, the picture message he sent is no longer visible on the screen.
  • Bob wants to "take back" the message, but because it isn't visible on screen, there is no way to take it back.
  • His only recourse MAY be to contact a chat admin, who was logged in during the time the picture was sent, to ask them if they can see it and take it back on his behalf. However, if no admin was online, they can not help either.

More backstory:

  • The chat server does not keep long-term state or memory of messages sent to public channels. When a message or picture is shared, it is immediately broadcast out to the currently online chatters, and the message then lives only on the web browser caches of those recipients, until they refresh or close the page.
  • To handle "take backs", then: the chat server assigns each outgoing message with a unique ID, and it remembers (temporarily!) which user created each message.
    • The takeback protocol is that your chat page tells the server: "take back message #1234"
    • The server validates that you indeed own that message, or it gives you an error. (Admins can take back any message ID).
    • The server then broadcasts to everybody: "take back message #1234" and every chat page searches its cache to find and remove the message, since messages lived only on the front-end browser caches of each chatter.

To handle the user story of a user regretting a picture they shared, but they are no longer able to take it back themselves and an admin didn't see it to help, the admin chatbot @shybot could add a feature to help out.

What shybot would need to do is:

  • Keep her own cache of message IDs, especially for picture messages sent on chat.
  • Have a trigger where users can ask her "please delete my recent pictures" or similar.
  • shybot would search her message ID cache looking for images shared by the username who is asking, and send takeback messages for all those IDs.
A user story: * Bob logs onto the chat room and shares a picture on one of the public channels. * He then refreshes the page or closes it on accident, and when returning to chat, the picture message he sent is no longer visible on the screen. * Bob wants to "take back" the message, but because it isn't visible on screen, there is no way to take it back. * His only recourse MAY be to contact a chat admin, who was logged in during the time the picture was sent, to ask them if they can see it and take it back on his behalf. However, if no admin was online, they can not help either. More backstory: * The chat server does not keep long-term state or memory of messages sent to public channels. When a message or picture is shared, it is immediately broadcast out to the currently online chatters, and the message then lives _only_ on the web browser caches of those recipients, until they refresh or close the page. * To handle "take backs", then: the chat server assigns each outgoing message with a unique ID, and it remembers (temporarily!) which user created each message. * The takeback protocol is that your chat page tells the server: "take back message #1234" * The server validates that you indeed own that message, or it gives you an error. (Admins can take back any message ID). * The server then broadcasts to everybody: "take back message #1234" and every chat page searches its cache to find and remove the message, since messages lived _only_ on the front-end browser caches of each chatter. To handle the user story of a user regretting a picture they shared, but they are no longer able to take it back themselves and an admin didn't see it to help, the admin chatbot @shybot could add a feature to help out. What shybot would need to do is: * Keep her own cache of message IDs, especially for picture messages sent on chat. * Have a trigger where users can ask her "please delete my recent pictures" or similar. * shybot would search her message ID cache looking for images shared by the username who is asking, and send takeback messages for all those IDs.
noah added the
enhancement
label 2024-11-24 22:50:50 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nonshy/website#53
No description provided.