mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
FIX: More last read position fixes
This commit is contained in:
parent
810b213ca0
commit
04bea0c9d6
2 changed files with 2 additions and 2 deletions
|
@ -865,7 +865,7 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
|||
}
|
||||
});
|
||||
|
||||
if (highestReadPostId > 0) {
|
||||
if (highestReadPostId > 0 && highestReadPostId > (topic.get('last_read_post_id') || 0)) {
|
||||
topic.set('last_read_post_id', highestReadPostId);
|
||||
}
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ createWidget('timeline-scrollarea', {
|
|||
|
||||
if (lastReadId && lastReadNumber) {
|
||||
const idx = postStream.get('stream').indexOf(lastReadId) + 1;
|
||||
result.lastRead = lastReadNumber;
|
||||
result.lastRead = idx;
|
||||
result.lastReadPercentage = this._percentFor(topic, idx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue