Add config option for enabling/disabling chat.

This commit is contained in:
eal 2018-02-01 19:23:26 +02:00
commit f0745148a3
4 changed files with 14 additions and 3 deletions

View file

@ -5,7 +5,9 @@ defmodule Pleroma.Web.UserSocket do
## Channels
# channel "room:*", Pleroma.Web.RoomChannel
channel "chat:*", Pleroma.Web.ChatChannel
if Application.get_env(:pleroma, :chat) |> Keyword.get(:enabled) do
channel "chat:*", Pleroma.Web.ChatChannel
end
## Transports
transport :websocket, Phoenix.Transports.WebSocket