Fix collapsed diff discussions expanding when adding a new discussion
What does this MR do and why?
Fixes Adding a new diff line comment expands all disc... (#480610 - closed).
This MR fixes the expansion of collapsed diff discussions when you add another discussion to the diff file.
Existing discussions are re-added to the diff file because of this watcher, so we have to work around this.
Screenshots or screen recordings
Before | After |
---|---|
Screen_Recording_2024-10-03_at_04.44.34 | Screen_Recording_2024-10-03_at_04.43.16 |
How to set up and validate locally
- Open any MR with changes
- Start a thread on any diff line
- Collapse that thread
- Add another thread on a different diff line
- Observe that the collapsed thread stayed collapsed