From a51477b501fd364d6bc263452866e721a590fb1c Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 18 May 2018 18:33:20 -0700 Subject: [PATCH] fix timelineType state read (#310) --- routes/_components/timeline/Timeline.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/_components/timeline/Timeline.html b/routes/_components/timeline/Timeline.html index ec81c45..ebe7fa8 100644 --- a/routes/_components/timeline/Timeline.html +++ b/routes/_components/timeline/Timeline.html @@ -169,7 +169,7 @@ this.set({scrollTop: scrollTop}) }, onScrollToBottom () { - let { timelineType } = this.store.get() + let { timelineType } = this.get() let { timelineInitialized, runningUpdate } = this.store.get() if (!timelineInitialized || runningUpdate || @@ -194,7 +194,7 @@ }, setupStreaming () { let { currentInstance } = this.store.get() - let { timeline } = this.get() + let { timeline, timelineType } = this.get() let handleItemIdsToAdd = () => { let { itemIdsToAdd } = this.get() if (!itemIdsToAdd || !itemIdsToAdd.length) { @@ -206,7 +206,7 @@ shouldShowHeader, showHeader } = this.store.get() - if (timeline.startsWith('status/')) { + if (timelineType === 'status') { // this is a thread, just insert the statuses already showMoreItemsForThread(currentInstance, timeline) } else if (scrollTop === 0 && !shouldShowHeader && !showHeader) {