Fix user topic streaming.

This commit is contained in:
lain 2018-05-26 21:06:46 +02:00
parent 46cc6fab07
commit a9e36e5a64

View file

@ -150,7 +150,7 @@ def push_to_socket(topics, topic, item) do
end)
end
defp internal_topic(topic, socket) when topic in ~w[user, direct] do
defp internal_topic(topic, socket) when topic in ~w[user direct] do
"#{topic}:#{socket.assigns[:user].id}"
end