Merge with downstream

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-07-11 14:22:14 +02:00
parent c91fe8fd5b
commit 41367c7b52
57 changed files with 505 additions and 203 deletions

View File

@@ -5,6 +5,7 @@ import { useLoggedIn } from 'soapbox/hooks';
import { useTimelineStream } from './useTimelineStream';
import type { IntlShape } from 'react-intl';
import type { AppDispatch } from 'soapbox/store';
const useUserStream = () => {
@@ -21,7 +22,7 @@ const useUserStream = () => {
};
/** Refresh home timeline and notifications. */
const refresh = (dispatch: AppDispatch, done?: () => void) =>
dispatch(expandHomeTimeline({}, () => dispatch(expandNotifications({}, done))));
const refresh = (dispatch: AppDispatch, intl?: IntlShape, done?: () => void) =>
dispatch(expandHomeTimeline({}, intl, () => dispatch(expandNotifications({}, done))));
export { useUserStream };