Add config option for enabling/disabling chat.
This commit is contained in:
parent
15cb3f2b01
commit
f0745148a3
4 changed files with 14 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue