overleaf/services/web/app/views
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
..
_mixins Merge pull request #2763 from overleaf/ta-dot-dot-dot 2020-04-23 03:29:02 +00:00
admin Merge pull request #2763 from overleaf/ta-dot-dot-dot 2020-04-23 03:29:02 +00:00
beta_program Merge pull request #2998 from overleaf/as-beta-page-updates 2020-07-15 02:06:35 +00:00
blog
general Merge pull request #3498 from overleaf/as-remove-brand-prefix 2021-01-06 03:07:45 +00:00
layout Merge pull request #3327 from overleaf/jpa-users-email-update 2020-10-31 03:05:41 +00:00
project Fixed unread message count in react chat (#3529) 2021-01-12 03:04:26 +00:00
referal Merge pull request #3265 from overleaf/jpa-i18n-drop-html-from-vars 2020-10-31 03:05:46 +00:00
subscriptions Merge pull request #3373 from overleaf/jpa-block-recurly-xss 2020-11-10 03:04:14 +00:00
translations Merge pull request #3265 from overleaf/jpa-i18n-drop-html-from-vars 2020-10-31 03:05:46 +00:00
university Merge pull request #1543 from sharelatex/as-fix-potential-angular-xss 2019-03-18 10:37:15 +00:00
user Merge pull request #3234 from overleaf/sk-fix-password-validation-email 2020-10-23 02:04:39 +00:00
user_membership Merge pull request #3265 from overleaf/jpa-i18n-drop-html-from-vars 2020-10-31 03:05:46 +00:00
view_templates Merge pull request #2524 from overleaf/sk-add-aria-attribs-on-close-buttons 2020-01-28 04:18:45 +00:00
_metadata.pug Merge pull request #3498 from overleaf/as-remove-brand-prefix 2021-01-06 03:07:45 +00:00
layout.pug Merge pull request #3428 from overleaf/jpa-gaBlocked 2020-12-03 03:04:38 +00:00