From 991f7c816bbd329b655da5f959c62bcf00a2db77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Tue, 10 Sep 2024 13:14:57 +0200 Subject: [PATCH] pl-fe: this was intended to be re-enabled some time ago MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/api/hooks/streaming/useUserStream.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } }, []);