FIX: More last read position fixes

This commit is contained in:
Robin Ward 2016-06-01 17:52:57 -04:00
parent 810b213ca0
commit 04bea0c9d6
No known key found for this signature in database
GPG key ID: 0E091E2B4ED1B83D
2 changed files with 2 additions and 2 deletions

View file

@ -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); topic.set('last_read_post_id', highestReadPostId);
} }

View file

@ -120,7 +120,7 @@ createWidget('timeline-scrollarea', {
if (lastReadId && lastReadNumber) { if (lastReadId && lastReadNumber) {
const idx = postStream.get('stream').indexOf(lastReadId) + 1; const idx = postStream.get('stream').indexOf(lastReadId) + 1;
result.lastRead = lastReadNumber; result.lastRead = idx;
result.lastReadPercentage = this._percentFor(topic, idx); result.lastReadPercentage = this._percentFor(topic, idx);
} }