diff options
Diffstat (limited to 'shard')
-rw-r--r-- | shard/lib/app/chat.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shard/lib/app/chat.ex b/shard/lib/app/chat.ex index ea210d8..d8ba5da 100644 --- a/shard/lib/app/chat.ex +++ b/shard/lib/app/chat.ex @@ -45,7 +45,7 @@ defmodule SApp.Chat do defstruct [:pk_list] def new(pk_list) do - %__MODULE__{pk_list: Enum.sort(pk_list)} + %__MODULE__{pk_list: pk_list |> Enum.sort |> Enum.uniq} end end |