overleaf/services/web/frontend/js
Miguel Serrano 864a75c284 Fixed unread message count in react chat (#3529)
* Fixed unread message count in react chat

The problem was caused by ChatStore being instantiated multiple times on each `useRef` call, plus also incorrectly cleaned-up, since it should be calling `socket.removeListener` instead of `socket.off` on effect destroy.

* deferred loading messages until chat is opened

GitOrigin-RevId: b990cd06cea6630472b0911b56219766717aaff6
2021-01-12 03:04:26 +00:00
..
directives Merge pull request #3490 from overleaf/as-remove-eslint-disables 2020-12-17 03:07:37 +00:00
features Fixed unread message count in react chat (#3529) 2021-01-12 03:04:26 +00:00
filters Merge pull request #3490 from overleaf/as-remove-eslint-disables 2020-12-17 03:07:37 +00:00
ide Merge pull request #3538 from overleaf/ta-file-tree-no-selection 2021-01-08 03:05:23 +00:00
infrastructure Merge pull request #3430 from overleaf/msm-filetree-open-selected-entity 2021-01-08 03:05:18 +00:00
main Merge pull request #3490 from overleaf/as-remove-eslint-disables 2020-12-17 03:07:37 +00:00
modules Merge pull request #3423 from overleaf/as-ta-sentry-fixes 2020-12-04 03:05:43 +00:00
services Merge pull request #3470 from overleaf/eslint 2020-12-16 03:08:28 +00:00
shared Merge pull request #3494 from overleaf/ae-eslint-hooks 2021-01-08 03:05:08 +00:00
utils Merge pull request #3470 from overleaf/eslint 2020-12-16 03:08:28 +00:00
vendor/libs Merge pull request #3511 from overleaf/jpa-false-positive-change-events 2021-01-08 03:04:31 +00:00
base.js Merge pull request #3470 from overleaf/eslint 2020-12-16 03:08:28 +00:00
i18n.js Merge pull request #3470 from overleaf/eslint 2020-12-16 03:08:28 +00:00
ide.js Merge pull request #3436 from overleaf/msm-react-shared-context 2020-12-15 03:05:07 +00:00
libraries.js Merge pull request #2947 from overleaf/as-migrate-publish-modal-fetch 2020-07-01 02:10:43 +00:00
main.js Merge pull request #3213 from overleaf/ta-move-input-suggestions 2020-09-19 02:04:20 +00:00