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.

video_calls: Add default password to zoom meetings.

Pietro Albini0f521fba415e
diff --git a/zerver/tests/test_create_video_call.py b/zerver/tests/test_create_video_call.py
index 05211c255bb..965fddb227d 100644
--- a/zerver/tests/test_create_video_call.py
+++ b/zerver/tests/test_create_video_call.py
@@ -78,6 +78,7 @@ class TestVideoCall(ZulipTestCase):
"host_video": True,
"participant_video": True,
},
+ "default_password": True,
},
)
self.assertEqual(
@@ -113,6 +114,7 @@ class TestVideoCall(ZulipTestCase):
"host_video": False,
"participant_video": False,
},
+ "default_password": True,
},
)
self.assertEqual(
diff --git a/zerver/views/video_calls.py b/zerver/views/video_calls.py
index 09f24003798..8db6822f7f1 100644
--- a/zerver/views/video_calls.py
+++ b/zerver/views/video_calls.py
@@ -162,7 +162,14 @@ def make_zoom_video_call(
"settings": {
"host_video": is_video_call,
"participant_video": is_video_call,
- }
+ },
+ # Generate a default password depending on the user settings. This will
+ # result in the password being appended to the returned Join URL.
+ #
+ # If we don't request a password to be set, the waiting room will be
+ # forcibly enabled in Zoom organizations that require some kind of
+ # authentication for all meetings.
+ "default_password": True,
}
try: