Topic: [Bug] DMail Response Chaining Destination

Posted under Site Bug Reports & Feature Requests

Bug overview description.
When sending 2 DMail responses in row in a chain to a user, the second response goes to the current user by default instead of the other person in the conversation. If you don't notice this and send the DMail, it's automatically marked as read so you don't get an unread mail notification that might help you realize this happened. This may cause confusion for users.

IMO the best fix would be to check when building the response form if the current user's ID matches the recipient ID; if so, use the To field from the parent message instead of the From field. You may also want to validate that the To field does not contain the current user when sending a DMail and return an error if so (should users be allowed to send DMails to themselves?)

What part(s) of the site page(s) are affected?
DMail compose page

What is the expected behavior?
DMail To field contains other participant in conversation by default

What actual behavior is given instead?
DMail To field contains current user by default

Time of incident (if applicable).
N/A

Can you reproduce the bug every time?
Yes.

What steps did you take to replicate this bug?
Steps to reproduce:

1. Respond to a DMail from another user.
2. Open the response DMail you just sent.
3. Click Respond.
4. The To field will have your name, instead of the other user in the conversation.
5. If you send, the DMail will go to yourself. You will not receive any notification (it will automatically be marked as read).

Errors or other messages returned (if any).
N/A