aboutsummaryrefslogtreecommitdiff
path: root/lib/mediasync/application.ex
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2024-07-27 15:34:28 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2024-07-27 15:34:28 +0000
commit407862a4e0e10ce2a035e4e5e76e26dde849aac1 (patch)
treedb8fe1c95672d31621c6bd5fe545cab5497f18df /lib/mediasync/application.ex
parentcd794243a5bba358d995e26ba024268e7d5d3f85 (diff)
downloadmediasync-407862a4e0e10ce2a035e4e5e76e26dde849aac1.tar
mediasync-407862a4e0e10ce2a035e4e5e76e26dde849aac1.tar.gz
mediasync-407862a4e0e10ce2a035e4e5e76e26dde849aac1.zip
Finish Discord activity implementation
Diffstat (limited to 'lib/mediasync/application.ex')
-rw-r--r--lib/mediasync/application.ex7
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