discourse/app/assets/javascripts
Alan Guo Xiang Tan f14189eb3b
FIX: PMs displaying outdated unread counts when read status is processing (#19217)
When a client "reads" a post, we do no immediately send the data of the
post for processing on the server. Instead, read posts data is batched
together and sent to the server for processing at regular intervals. On
the server side, processing of read posts data is done in the
background. As such, there is a small window of delay before a post is
marked as read by a user on the server side.

If a client reads a topic and loads the messages topic list before the
server has processed the read post, the unread posts count for the topic
which the client just read will appear to be incorrect/outdated.

As part of tracking a post as read, we are already tracking the highest
read post number for the last read topic by the client. Therefore, we
can use this information to correct the highest post read number in the
scenario that was described above. This solution is the same as what
we've been doing for the regular topics list.
2022-11-29 05:55:48 +08:00
..
admin Build(deps-dev): Bump @embroider/test-setup in /app/assets/javascripts (#19170) 2022-11-24 17:59:18 +01:00
bootstrap-json Build(deps): Bump jsdom from 20.0.2 to 20.0.3 in /app/assets/javascripts (#19115) 2022-11-21 09:47:48 +08:00
confirm-new-email DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
dialog-holder DEV: Make dialog-holder a monorepo package (#19051) 2022-11-16 16:43:45 +01:00
discourse FIX: PMs displaying outdated unread counts when read status is processing (#19217) 2022-11-29 05:55:48 +08:00
discourse-common Build(deps-dev): Bump @embroider/test-setup in /app/assets/javascripts (#19170) 2022-11-24 17:59:18 +01:00
discourse-ensure-deprecation-order DEV: Silence 3.x deprecations 2022-07-19 10:00:59 +01:00
discourse-hbr Build(deps-dev): Bump @embroider/test-setup in /app/assets/javascripts (#19170) 2022-11-24 17:59:18 +01:00
discourse-plugins DEV: Correct plugin-compilation connector template module path (#19165) 2022-11-23 17:57:59 +00:00
discourse-widget-hbs Build(deps-dev): Bump @embroider/test-setup in /app/assets/javascripts (#19170) 2022-11-24 17:59:18 +01:00
docs
ember-addons
ember-cli-progress-ci DEV: Add progress output in CI during ember-cli build (#17977) 2022-08-17 22:39:52 +01:00
locales FEATURE: Add Croatian language (#17130) 2022-06-18 00:18:22 +02:00
pretty-text Build(deps-dev): Bump @embroider/test-setup in /app/assets/javascripts (#19170) 2022-11-24 17:59:18 +01:00
select-kit Build(deps-dev): Bump @embroider/test-setup in /app/assets/javascripts (#19170) 2022-11-24 17:59:18 +01:00
truth-helpers Build(deps-dev): Bump @embroider/test-setup in /app/assets/javascripts (#19170) 2022-11-24 17:59:18 +01:00
wizard Build(deps-dev): Bump @embroider/test-setup in /app/assets/javascripts (#19170) 2022-11-24 17:59:18 +01:00
.licensee.json DEV: Have licensee check xmldom license (#18840) 2022-11-02 11:51:11 -04:00
.npmrc
discourse-js-processor.js DEV: Introduce minification and source maps for Theme JS (#18646) 2022-10-18 18:20:10 +01:00
handlebars-shim.js
package.json DEV: Make dialog-holder a monorepo package (#19051) 2022-11-16 16:43:45 +01:00
polyfills.js DEV: Add polyfill for String.prototype.replaceAll (#16301) 2022-03-28 17:18:56 +01:00
service-worker.js.erb FEATURE: Replyable chat push notifications (#18973) 2022-11-11 12:30:21 -03:00
yarn.lock Build(deps-dev): Bump @embroider/test-setup in /app/assets/javascripts (#19170) 2022-11-24 17:59:18 +01:00