pleroma/app/soapbox/api/hooks/streaming/useDirectStream.ts

17 lines
326 B
TypeScript
Raw Normal View History

import { useLoggedIn } from 'soapbox/hooks/useLoggedIn';
2023-07-22 12:00:00 -07:00
import { useTimelineStream } from './useTimelineStream';
function useDirectStream() {
const { isLoggedIn } = useLoggedIn();
return useTimelineStream(
'direct',
'direct',
null,
null,
{ enabled: isLoggedIn },
);
2023-07-22 12:00:00 -07:00
}
export { useDirectStream };