Skip to content

Commit

Permalink
ignore nodecontentchange events of the user itself
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Nov 23, 2024
1 parent 34728dc commit 3498a58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/radiator_web/live/outline_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ defmodule RadiatorWeb.OutlineComponent do
# TODO: beim zusammenziehen von nodes ist es wichtig, dass wir
# (also der verursacher) auch den neuen content erhalten

# def update(
# %{event: %NodeContentChangedEvent{event_id: <<_::binary-size(36)>> <> ":" <> id}},
# %{id: id} = socket
# ),
# do: reply(socket, :ok)
def update(
%{event: %NodeContentChangedEvent{event_id: <<_::binary-size(36)>> <> ":" <> id}},
%{id: id} = socket
),
do: reply(socket, :ok)

def update(%{event: %NodeContentChangedEvent{node_id: node_id, content: content}}, socket) do
socket
Expand Down

0 comments on commit 3498a58

Please sign in to comment.