Persist suggestions when filtering feed

This commit is contained in:
Justin 2022-07-06 09:04:21 -04:00
parent 2f465fbc14
commit c664844e3c

View file

@ -142,7 +142,7 @@ const replaceHomeTimeline = (
{ maxId }: Record<string, any> = {}, { maxId }: Record<string, any> = {},
) => (dispatch: AppDispatch, _getState: () => RootState) => { ) => (dispatch: AppDispatch, _getState: () => RootState) => {
dispatch({ type: TIMELINE_REPLACE, accountId }); dispatch({ type: TIMELINE_REPLACE, accountId });
dispatch(expandHomeTimeline({ accountId, maxId })); dispatch(expandHomeTimeline({ accountId, maxId }, () => dispatch(insertSuggestionsIntoTimeline())));
}; };
const expandTimeline = (timelineId: string, path: string, params: Record<string, any> = {}, done = noOp) => const expandTimeline = (timelineId: string, path: string, params: Record<string, any> = {}, done = noOp) =>