@ -202,7 +202,10 @@ defmodule Pleroma.Application do
end
defp chat_child(true) do
[Pleroma.Web.ChatChannel.ChatChannelState]
[
Pleroma.Web.ChatChannel.ChatChannelState,
{Phoenix.PubSub, [name: Pleroma.PubSub, adapter: Phoenix.PubSub.PG2]}
]
defp chat_child(_), do: []
@ -177,7 +177,7 @@ defmodule Pleroma.Web do
def channel do
quote do
# credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse
use Phoenix.Channel
import Phoenix.Channel
import Pleroma.Web.Gettext
@ -22,7 +22,7 @@ defmodule Pleroma.Web.ChannelCase do
using do
# Import conveniences for testing with channels
use Phoenix.ChannelTest
import Phoenix.ChannelTest
use Pleroma.Tests.Helpers
# The default endpoint for testing