1
0
mirror of https://github.com/flarum/core.git synced 2025-10-17 01:36:09 +02:00

Clean up post stream

This commit is contained in:
Toby Zerner
2015-02-02 16:55:22 +10:30
parent f7575cd694
commit 6568d7d269
3 changed files with 29 additions and 31 deletions

View File

@@ -207,7 +207,7 @@ export default Ember.Component.extend({
// If the index we've landed on is in a gap, then tell the stream-
// content that we want to load those posts.
var intIndex = Math.floor(view.get('index'));
if (view.get('stream').findNearestToIndex(intIndex).gap) {
if (! view.get('stream').findNearestToIndex(intIndex).content) {
view.get('streamContent').send('goToIndex', intIndex);
} else {
view.set('streamContent.paused', false);