Avatar badge for image diffs are inconsistent when switching tabs in MR for 2 specific edge cases

If you go to a MR and load both the discussion tab and the diff tab (In other words, load the MR url, then click on the changes tab and wait for it to load, then switch back to the discussion tab) and perform the following actions, you will encounter a weird UX inconsistency.

  • Delete the first note of an image diff discussion (that has more than one note) and then go back to the changes tab to view that discussion. Notice that the avatar badge does not get displayed correctly on that tab (Although a page refresh will fix this inconsistency)

  • Edit the first note of an image diff discussion and then go back to the changes tab to view that discussion. Notice that the avatar badge does not get displayed correctly on that tab (Although a page refresh will fix this inconsistency)

This inconsistency also occurs when you make the change in the diff tab and then check back on the discussion tab