diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-07-27 15:34:28 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-07-27 15:34:28 +0000 |
commit | 407862a4e0e10ce2a035e4e5e76e26dde849aac1 (patch) | |
tree | db8fe1c95672d31621c6bd5fe545cab5497f18df /lib/mediasync/application.ex | |
parent | cd794243a5bba358d995e26ba024268e7d5d3f85 (diff) | |
download | mediasync-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.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 |