Bug description
When mentioning a user within the comment of a discussion, if that user has a previous comment on the discussion, then the comment is posted in reply to their latest comment rather than as a top-level reply to the discussion. I would expect when replying to the OP (even when mentioning a user), that my comment would remain in reply to the discussion rather than being re-assigned as a reply to the user's previous comment. In many cases, I am wanting to mention the user, opening a new thread of comments on the discussion not related to their most recent comment in the thread.
I have not tested how comment assignment is handled when mentioning multiple users that may have made a previous reply.
Steps to reproduce
- Create discussion with User A
- Comment on discussion with User B
- Comment on discussion with User A mentioning User B
- See that comment is posted as reply to User B's comment rather than to primary discussion post.
Logs
Environment
Environment .....................................................
Application Name ............................... [redacted]
Laravel Version ......................................... 11.48.0
PHP Version .............................................. 8.4.16
Composer Version .......................................... 2.9.2
Environment .......................................... production
Debug Mode .................................................. OFF
URL ............................................ [redacted]
Maintenance Mode ............................................ OFF
Timezone .................................................... UTC
Locale ....................................................... en
Waterhole Version ........................................ v0.6.2
Bug description
When mentioning a user within the comment of a discussion, if that user has a previous comment on the discussion, then the comment is posted in reply to their latest comment rather than as a top-level reply to the discussion. I would expect when replying to the OP (even when mentioning a user), that my comment would remain in reply to the discussion rather than being re-assigned as a reply to the user's previous comment. In many cases, I am wanting to mention the user, opening a new thread of comments on the discussion not related to their most recent comment in the thread.
I have not tested how comment assignment is handled when mentioning multiple users that may have made a previous reply.
Steps to reproduce
Logs
Environment