aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/controllers/chat_controller.ex
diff options
context:
space:
mode:
Diffstat (limited to 'shardweb/lib/controllers/chat_controller.ex')
-rw-r--r--shardweb/lib/controllers/chat_controller.ex5
1 files changed, 2 insertions, 3 deletions
diff --git a/shardweb/lib/controllers/chat_controller.ex b/shardweb/lib/controllers/chat_controller.ex
index 75f2f18..080ee61 100644
--- a/shardweb/lib/controllers/chat_controller.ex
+++ b/shardweb/lib/controllers/chat_controller.ex
@@ -13,9 +13,8 @@ defmodule ShardWeb.ChatController do
end
def privchat(conn, %{"people_list" => people_list}) do
- known_people = for {_, %SApp.Identity.Manifest{pk: pk}, pid} <- Shard.Manager.list_shards() do
- info = SApp.Identity.get_info(pid)
- {pk, info.nick}
+ known_people = for {_, %SApp.Identity.Manifest{pk: pk}, _} <- Shard.Manager.list_shards() do
+ {pk, SApp.Identity.get_nick(pk)}
end
pk_list = for qname <- String.split(people_list, ",") do