Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
video_calls: Remove call to deprecated Zoom Data Compliance API.
Anders Kaseorg1f5fc1298965
diff --git a/zerver/tests/test_create_video_call.py b/zerver/tests/test_create_video_call.pyindex fae7b5f61d7..6c11bf2c0b2 100644--- a/zerver/tests/test_create_video_call.py+++ b/zerver/tests/test_create_video_call.py@@ -147,8 +147,6 @@ class TestVideoCall(ZulipTestCase):@responses.activatedef test_deauthorize_zoom_user(self) -> None:- responses.add(responses.POST, "https://api.zoom.us/oauth/data/compliance")-response = self.client_post("/calls/zoom/deauthorize","""\diff --git a/zerver/views/video_calls.py b/zerver/views/video_calls.pyindex ea796b06b2c..14f9ca72571 100644--- a/zerver/views/video_calls.py+++ b/zerver/views/video_calls.py@@ -154,20 +154,6 @@ def make_zoom_video_call(request: HttpRequest, user: UserProfile) -> HttpRespons@require_POST@has_request_variablesdef deauthorize_zoom_user(request: HttpRequest) -> HttpResponse:- data = json.loads(request.body)- payload = data["payload"]- if payload["user_data_retention"] == "false":- requests.post(- "https://api.zoom.us/oauth/data/compliance",- json={- "client_id": settings.VIDEO_ZOOM_CLIENT_ID,- "user_id": payload["user_id"],- "account_id": payload["account_id"],- "deauthorization_event_received": payload,- "compliance_completed": True,- },- auth=(settings.VIDEO_ZOOM_CLIENT_ID, settings.VIDEO_ZOOM_CLIENT_SECRET),- ).raise_for_status()return json_success()