Individual PM sent to entire group accidentally

AI-generated summary

A bug was reported where starting a private message (PM) to an individual, then switching to message a group, can accidentally change the recipient to the group without clear warning — potentially sending private messages to large groups. jtbayly documented steps to reproduce the issue, including an embarrassing real-world example involving 80 people. awesomerobot confirmed the bug also occurs with PMs to individual users, noting that recipient replacement upon reopening a draft is incorrect behavior. jtbayly agreed, adding humor to the frustration. zogstrip asked for a fix, and nbianca acknowledged the issue, apologized for the embarrassment caused, and shared a GitHub pull request (#7122) aimed at preventing this from recurring. The core problem lies in the UI not preserving or clearly indicating the original recipient when drafts are reopened across contexts, leading to unintended message delivery. The fix is in progress and intended to safeguard user privacy and prevent future mishaps.

To reproduce:

  1. Start typing a PM to somebody, but don’t send it.
  2. In a different tab (or window) navigate to a group you can message and click “Message”
  3. A dialog asks, “You already opened another draft in this topic. Are you sure you want to abandon it?” click “No, keep.”
  4. Note that the recipient has now changed to the group, instead of the original intended recipient of the PM.
  5. (Optional) skip step 4 and send the message, thereby embarrassing yourself in front of the whole group (in my case about 80 people), with several messages going back and forth before you figure out what is going on.
12 Likes

I can reproduce this here on Meta with PMs to users too, so it’s not just groups. We definitely shouldn’t be replacing the recipient when reopening the draft.

9 Likes

My thoughts exactly! Lol.

@nbianca is there anything we can do here to prevent this from happening?

4 Likes

I cannot make up for your embarrassment, but I can prevent from happening in the future. :sweat_smile:

https://github.com/discourse/discourse/pull/7122

14 Likes

This topic was automatically closed after 25 hours. New replies are no longer allowed.