Persist suggestions when filtering feed

feed-suggestions
Justin 2022-07-06 09:04:21 -04:00
rodzic 2f465fbc14
commit c664844e3c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -142,7 +142,7 @@ const replaceHomeTimeline = (
{ maxId }: Record<string, any> = {},
) => (dispatch: AppDispatch, _getState: () => RootState) => {
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) =>