Fix #529 - Make hashtag timelines show conversations, fix hashtag loading in the UI

This commit is contained in:
Eugen Rochko
2017-01-31 22:34:33 +01:00
parent 8ef79d8dc9
commit bf60f2898d
6 changed files with 14 additions and 8 deletions

View File

@ -74,7 +74,7 @@ export function refreshTimeline(timeline, id = null) {
let path = timeline;
let skipLoading = false;
if (newestId !== null && getState().getIn(['timelines', timeline, 'loaded'])) {
if (newestId !== null && getState().getIn(['timelines', timeline, 'loaded']) && (id === null || getState().getIn(['timelines', timeline, 'id']) === id)) {
params = `?since_id=${newestId}`;
skipLoading = true;
}
@ -112,7 +112,7 @@ export function expandTimeline(timeline, id = null) {
return;
}
dispatch(expandTimelineRequest(timeline));
dispatch(expandTimelineRequest(timeline, id));
let path = timeline;
@ -133,10 +133,11 @@ export function expandTimeline(timeline, id = null) {
};
};
export function expandTimelineRequest(timeline) {
export function expandTimelineRequest(timeline, id) {
return {
type: TIMELINE_EXPAND_REQUEST,
timeline
timeline,
id
};
};