mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
f14189eb3b
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. |
||
---|---|---|
.. | ||
admin | ||
bootstrap-json | ||
confirm-new-email | ||
dialog-holder | ||
discourse | ||
discourse-common | ||
discourse-ensure-deprecation-order | ||
discourse-hbr | ||
discourse-plugins | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
ember-cli-progress-ci | ||
locales | ||
pretty-text | ||
select-kit | ||
truth-helpers | ||
wizard | ||
.licensee.json | ||
.npmrc | ||
discourse-js-processor.js | ||
handlebars-shim.js | ||
package.json | ||
polyfills.js | ||
service-worker.js.erb | ||
yarn.lock |