diff options
Diffstat (limited to 'lib/mediasync/application.ex')
-rw-r--r-- | lib/mediasync/application.ex | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/mediasync/application.ex b/lib/mediasync/application.ex index 1e8f6d4..5cef37a 100644 --- a/lib/mediasync/application.ex +++ b/lib/mediasync/application.ex @@ -25,6 +25,13 @@ defmodule Mediasync.Application do {Registry, keys: :duplicate, name: Mediasync.RoomSubscriptionRegistry} ] + children = + if Application.fetch_env!(:mediasync, :enable_discord_activity?) do + [{Registry, keys: :duplicate, name: Mediasync.DiscordActivityInstanceRegistry} | children] + else + children + end + System.no_halt(true) # See https://hexdocs.pm/elixir/Supervisor.html |