diff options
author | Jordan Bracco <href@random.sh> | 2022-12-20 03:03:58 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | 1d9916bc01e121b53dee4eb11b7cae958fc2f9d8 (patch) | |
tree | ca5a9522f4d28088f7d2346865ffe84e97c32352 /lib/web | |
parent | Rename IRC.Membership to Nola.Membership, refs T77 (diff) |
Rename IRC.UserTrack to Nola.UserTrack, refs T77
Diffstat (limited to 'lib/web')
-rw-r--r-- | lib/web/controllers/irc_controller.ex | 2 | ||||
-rw-r--r-- | lib/web/controllers/page_controller.ex | 2 | ||||
-rw-r--r-- | lib/web/live/chat_live.ex | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/web/controllers/irc_controller.ex b/lib/web/controllers/irc_controller.ex index 441cbe7..d2ba04a 100644 --- a/lib/web/controllers/irc_controller.ex +++ b/lib/web/controllers/irc_controller.ex @@ -15,7 +15,7 @@ defmodule NolaWeb.IrcController do |> Enum.filter(& &1) |> Enum.filter(fn({_, doc}) -> doc end) members = cond do - network && channel -> Enum.map(IRC.UserTrack.channel(network, channel), fn(tuple) -> IRC.UserTrack.User.from_tuple(tuple) end) + network && channel -> Enum.map(Nola.UserTrack.channel(network, channel), fn(tuple) -> Nola.UserTrack.User.from_tuple(tuple) end) true -> Nola.Membership.of_account(conn.assigns.account) end diff --git a/lib/web/controllers/page_controller.ex b/lib/web/controllers/page_controller.ex index a6b85b6..bf79413 100644 --- a/lib/web/controllers/page_controller.ex +++ b/lib/web/controllers/page_controller.ex @@ -24,7 +24,7 @@ defmodule NolaWeb.PageController do def index(conn = %{assigns: %{account: account}}, _) do memberships = Nola.Membership.of_account(account) - users = IRC.UserTrack.find_by_account(account) + users = Nola.UserTrack.find_by_account(account) metas = Nola.Account.get_all_meta(account) predicates = Nola.Account.get_predicates(account) conn diff --git a/lib/web/live/chat_live.ex b/lib/web/live/chat_live.ex index 2d5e289..3f126f2 100644 --- a/lib/web/live/chat_live.ex +++ b/lib/web/live/chat_live.ex @@ -16,8 +16,8 @@ defmodule NolaWeb.ChatLive do IRC.PuppetConnection.start(account, connection) - users = IRC.UserTrack.channel(connection.network, chan) - |> Enum.map(fn(tuple) -> IRC.UserTrack.User.from_tuple(tuple) end) + users = Nola.UserTrack.channel(connection.network, chan) + |> Enum.map(fn(tuple) -> Nola.UserTrack.User.from_tuple(tuple) end) |> Enum.reduce(Map.new, fn(user = %{id: id}, acc) -> Map.put(acc, id, user) end) @@ -53,7 +53,7 @@ defmodule NolaWeb.ChatLive do end def handle_info({:irc, :event, event = %{type: :join, user_id: id}}, socket) do - if user = IRC.UserTrack.lookup(id) do + if user = Nola.UserTrack.lookup(id) do socket = socket |> assign(:users, Map.put(socket.assigns.users, id, user)) |> append_to_backlog(event) |