After leaving a comment it is sometimes displayed twice
Summary
After a comment is submitted on an issue, it is sometimes displayed twice until the page is reloaded.
Steps to reproduce
- leave a comment
- have luck
What is the current bug behavior?
comment appears twice:
What is the expected correct behavior?
comment appears only once
Possible fixes
Both displayed comments have the same ID, so we could filter out duplicates on the frontend before displaying them.
The problem may also be related to polling which could be disabled immediately before submitting a comment and reenabled afterwards.