From 0078ed0c3a911a0666fce2cde8c11fd662c88fa5 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Fri, 20 Oct 2023 16:31:52 +0000 Subject: [PATCH] refactor(services): delete xxenablexx functions from jitsi --- selfprivacy_api/services/jitsi/__init__.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/selfprivacy_api/services/jitsi/__init__.py b/selfprivacy_api/services/jitsi/__init__.py index fed6f33..d5677cc 100644 --- a/selfprivacy_api/services/jitsi/__init__.py +++ b/selfprivacy_api/services/jitsi/__init__.py @@ -55,33 +55,12 @@ class Jitsi(Service): def get_backup_description() -> str: return "Secrets that are used to encrypt the communication." - @staticmethod - def is_enabled() -> bool: - with ReadUserData() as user_data: - return user_data.get("jitsi", {}).get("enable", False) - @staticmethod def get_status() -> ServiceStatus: return get_service_status_from_several_units( ["jitsi-videobridge.service", "jicofo.service"] ) - @staticmethod - def enable(): - """Enable Jitsi service.""" - with WriteUserData() as user_data: - if "jitsi" not in user_data: - user_data["jitsi"] = {} - user_data["jitsi"]["enable"] = True - - @staticmethod - def disable(): - """Disable Gitea service.""" - with WriteUserData() as user_data: - if "jitsi" not in user_data: - user_data["jitsi"] = {} - user_data["jitsi"]["enable"] = False - @staticmethod def stop(): subprocess.run(