nicolium: pinned group statuses are not supported
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -13,16 +13,12 @@ import Timeline from '@/features/ui/components/timeline';
|
|||||||
import { groupTimelineRoute } from '@/features/ui/router';
|
import { groupTimelineRoute } from '@/features/ui/router';
|
||||||
import { ComposeForm } from '@/features/ui/util/async-components';
|
import { ComposeForm } from '@/features/ui/util/async-components';
|
||||||
import { useAppDispatch } from '@/hooks/use-app-dispatch';
|
import { useAppDispatch } from '@/hooks/use-app-dispatch';
|
||||||
import { useAppSelector } from '@/hooks/use-app-selector';
|
|
||||||
import { useDraggedFiles } from '@/hooks/use-dragged-files';
|
import { useDraggedFiles } from '@/hooks/use-dragged-files';
|
||||||
import { useOwnAccount } from '@/hooks/use-own-account';
|
import { useOwnAccount } from '@/hooks/use-own-account';
|
||||||
import { useGroupQuery } from '@/queries/groups/use-group';
|
import { useGroupQuery } from '@/queries/groups/use-group';
|
||||||
import { makeGetStatusIds } from '@/selectors';
|
|
||||||
import { useComposeActions, useUploadCompose } from '@/stores/compose';
|
import { useComposeActions, useUploadCompose } from '@/stores/compose';
|
||||||
import { useSettings } from '@/stores/settings';
|
import { useSettings } from '@/stores/settings';
|
||||||
|
|
||||||
const getStatusIds = makeGetStatusIds();
|
|
||||||
|
|
||||||
interface IGroupTimeline {
|
interface IGroupTimeline {
|
||||||
groupId: string;
|
groupId: string;
|
||||||
}
|
}
|
||||||
@ -30,10 +26,6 @@ interface IGroupTimeline {
|
|||||||
const GroupTimeline: React.FC<IGroupTimeline> = ({ groupId }) => {
|
const GroupTimeline: React.FC<IGroupTimeline> = ({ groupId }) => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
const featuredStatusIds = useAppSelector((state) =>
|
|
||||||
getStatusIds(state, { type: `group:${groupId}:pinned` }),
|
|
||||||
);
|
|
||||||
|
|
||||||
const handleLoadMore = () => {
|
const handleLoadMore = () => {
|
||||||
dispatch(fetchGroupTimeline(groupId, {}, true));
|
dispatch(fetchGroupTimeline(groupId, {}, true));
|
||||||
};
|
};
|
||||||
@ -57,7 +49,6 @@ const GroupTimeline: React.FC<IGroupTimeline> = ({ groupId }) => {
|
|||||||
}
|
}
|
||||||
emptyMessageIcon={require('@phosphor-icons/core/regular/chat-centered-text.svg')}
|
emptyMessageIcon={require('@phosphor-icons/core/regular/chat-centered-text.svg')}
|
||||||
showGroup={false}
|
showGroup={false}
|
||||||
featuredStatusIds={featuredStatusIds}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user