diff --git a/packages/pl-fe/src/api/hooks/streaming/useUserStream.ts b/packages/pl-fe/src/api/hooks/streaming/useUserStream.ts index 0b013de11..976db0d4a 100644 --- a/packages/pl-fe/src/api/hooks/streaming/useUserStream.ts +++ b/packages/pl-fe/src/api/hooks/streaming/useUserStream.ts @@ -2,6 +2,7 @@ import { useCallback } from 'react'; import { updateConversations } from 'pl-fe/actions/conversations'; import { fetchFilters } from 'pl-fe/actions/filters'; +import { MARKER_FETCH_SUCCESS } from 'pl-fe/actions/markers'; import { updateNotificationsQueue } from 'pl-fe/actions/notifications'; import { getLocale, getSettings } from 'pl-fe/actions/settings'; import { updateStatus } from 'pl-fe/actions/statuses'; @@ -167,9 +168,9 @@ const useUserStream = () => { case 'announcement.delete': deleteAnnouncement(event.payload); break; - // case 'marker': - // dispatch({ type: MARKER_FETCH_SUCCESS, marker: JSON.parse(data.payload) }); - // break; + case 'marker': + dispatch({ type: MARKER_FETCH_SUCCESS, marker: event.payload }); + break; } }, []);