realm: Refactor VIDEO_CHAT_PROVIDERS to have all possible options.

Refactors Realm.VIDEO_CHAT_PROIVDERS to have all the possible options
for video chat integrations, and use get_enabled_video_chat_providers
to compute the enabled options for the realm.

Prep for adding Zoom server to server video chat integration.
This commit is contained in:
Lauryn Menard
2025-01-31 16:16:24 +01:00
committed by Tim Abbott
parent ef2f8c0796
commit f13a1a48f7
4 changed files with 58 additions and 22 deletions

View File

@@ -354,7 +354,7 @@ def fetch_initial_state_data(
# can be removed once there are no longer clients relying on it.
state["realm_url"] = state["realm_uri"] = realm.url
state["realm_bot_domain"] = realm.get_bot_domain()
state["realm_available_video_chat_providers"] = realm.VIDEO_CHAT_PROVIDERS
state["realm_available_video_chat_providers"] = realm.get_enabled_video_chat_providers()
state["settings_send_digest_emails"] = settings.SEND_DIGEST_EMAILS
state["realm_digest_emails_enabled"] = (