diff options
author | Jordan Bracco <href@random.sh> | 2022-12-20 15:03:45 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:42 +0100 |
commit | d476f949136571a89eb0a1ada1a0e112c6a1dfb5 (patch) | |
tree | c96a18742428175c639fd14b1053b73615ab12e7 /lib/web/live/chat_live.ex | |
parent | chore: config example update, add version to footer, remove useless module, r... (diff) |
Finish renaming IRC to Nola.Irc, refs T77.
Diffstat (limited to '')
-rw-r--r-- | lib/web/live/chat_live.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/web/live/chat_live.ex b/lib/web/live/chat_live.ex index f8bab7d..8a9f6f2 100644 --- a/lib/web/live/chat_live.ex +++ b/lib/web/live/chat_live.ex @@ -22,7 +22,7 @@ defmodule NolaWeb.ChatLive do Map.put(acc, id, user) end) - backlog = case Nola.IRC.Buffer.select_buffer(connection.network, chan) do + backlog = case Nola.Plugins.Buffer.select_buffer(connection.network, chan) do {backlog, _} -> {backlog, _} = Enum.reduce(backlog, {backlog, nil}, &reduce_contextual_event/2) Enum.reverse(backlog) @@ -48,7 +48,7 @@ defmodule NolaWeb.ChatLive do def handle_event("send", %{"message" => %{"text" => text}}, socket) do account = Nola.Account.get(socket.assigns.account_id) - IRC.send_message_as(account, socket.assigns.network, socket.assigns.channel, text, true) + Nola.Irc.send_message_as(account, socket.assigns.network, socket.assigns.channel, text, true) {:noreply, assign(socket, :counter, socket.assigns.counter + 1)} end |