Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose: Refactor the condition to show the audio call button.

Hemant Umre8b92999d69aa
diff --git a/web/src/compose.js b/web/src/compose.js
index ea9940be959..7bf97dafaa8 100644
--- a/web/src/compose.js
+++ b/web/src/compose.js
@@ -90,6 +90,7 @@ export function compute_show_audio_chat_button() {
const available_providers = page_params.realm_available_video_chat_providers;
if (
(available_providers.jitsi_meet &&
+ page_params.jitsi_server_url &&
page_params.realm_video_chat_provider === available_providers.jitsi_meet.id) ||
(available_providers.zoom &&
page_params.realm_video_chat_provider === available_providers.zoom.id)