diff options
author | Alex Auvolat <alex@adnab.me> | 2018-10-12 15:52:42 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-10-12 15:52:42 +0200 |
commit | 0d358f6f699a5ce04ffe1bccf4f375b5f321391c (patch) | |
tree | b90a1093b3ac0cd1e7d3643abb34e87078b6072e /shard/lib | |
parent | 1e91dc596fd2f7fdd96b7fd2fc50724f93e46529 (diff) | |
download | shard-0d358f6f699a5ce04ffe1bccf4f375b5f321391c.tar.gz shard-0d358f6f699a5ce04ffe1bccf4f375b5f321391c.zip |
Private chat interface
Diffstat (limited to 'shard/lib')
-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 |