How to reproduce:
- - In side-by-side or unidiff mode, add a new comment on a given line
- - Switch to the other diff mode
--> The comment is not displayed
The reason is that when the comment is created, it is added in a store of comments/replies, but it is never added in the list of root comments. When we switch modes, the root comments are retrieved from this store and displayed in the editor instead of being reloaded from REST. If the created comment is not added in this list, it therefore won't be displayed.