From 90509b0f97eee579fba4cfa19639737a3ff1589d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20W=C3=B6ginger?= Date: Tue, 10 Sep 2024 12:37:58 +0200 Subject: [PATCH] do not preprocess move node events, therefor they should not be filtered --- lib/radiator_web/live/episode_live/index.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/radiator_web/live/episode_live/index.ex b/lib/radiator_web/live/episode_live/index.ex index bd51b7fc..ee22f064 100644 --- a/lib/radiator_web/live/episode_live/index.ex +++ b/lib/radiator_web/live/episode_live/index.ex @@ -61,6 +61,8 @@ defmodule RadiatorWeb.EpisodeLive.Index do end @impl true + def handle_info(%NodeMovedEvent{} = event, socket), do: proxy_event(event, socket) + def handle_info(%{uuid: <<_::binary-size(36)>> <> ":" <> id} = event, %{id: id} = socket) do socket |> stream_event(event) @@ -69,7 +71,6 @@ defmodule RadiatorWeb.EpisodeLive.Index do def handle_info(%NodeInsertedEvent{} = event, socket), do: proxy_event(event, socket) def handle_info(%NodeContentChangedEvent{} = event, socket), do: proxy_event(event, socket) - def handle_info(%NodeMovedEvent{} = event, socket), do: proxy_event(event, socket) def handle_info(%NodeDeletedEvent{} = event, socket), do: proxy_event(event, socket) defp proxy_event(event, socket) do