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