Skip to content

Commit

Permalink
do not preprocess move node events, therefor they should not be filtered
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Sep 10, 2024
1 parent af09b9a commit 90509b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/radiator_web/live/episode_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 90509b0

Please sign in to comment.