diff libervia/backend/plugins/plugin_xep_0384.py @ 4072:040095a5dc7f

refactoring: rename `SAT` class to `LiberviaBackend`
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 11:55:48 +0200
parents 4b842c1fb686
children 7c5654c54fed
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0384.py	Fri Jun 02 11:49:51 2023 +0200
+++ b/libervia/backend/plugins/plugin_xep_0384.py	Fri Jun 02 11:55:48 2023 +0200
@@ -36,7 +36,7 @@
 from libervia.backend.core.core_types import MessageData, SatXMPPEntity
 from libervia.backend.core.i18n import _, D_
 from libervia.backend.core.log import getLogger, Logger
-from libervia.backend.core.sat_main import SAT
+from libervia.backend.core.sat_main import LiberviaBackend
 from libervia.backend.core.xmpp import SatXMPPClient
 from libervia.backend.memory import persistent
 from libervia.backend.plugins.plugin_misc_text_commands import TextCommands
@@ -803,7 +803,7 @@
         await client.a_send(message_data["xml"])
 
 
-def make_session_manager(sat: SAT, profile: str) -> Type[omemo.SessionManager]:
+def make_session_manager(sat: LiberviaBackend, profile: str) -> Type[omemo.SessionManager]:
     """
     @param sat: The SAT instance.
     @param profile: The profile.
@@ -1389,7 +1389,7 @@
 
 
 async def prepare_for_profile(
-    sat: SAT,
+    sat: LiberviaBackend,
     profile: str,
     initial_own_label: Optional[str],
     signed_pre_key_rotation_period: int = 7 * 24 * 60 * 60,
@@ -1540,7 +1540,7 @@
         custom_policies={}
     )
 
-    def __init__(self, sat: SAT) -> None:
+    def __init__(self, sat: LiberviaBackend) -> None:
         """
         @param sat: The SAT instance.
         """