Fix user topic streaming.
This commit is contained in:
parent
46cc6fab07
commit
a9e36e5a64
|
@ -150,7 +150,7 @@ def push_to_socket(topics, topic, item) do
|
||||||
end)
|
end)
|
||||||
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}"
|
"#{topic}:#{socket.assigns[:user].id}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue