diff libervia/backend/memory/encryption.py @ 4379:79d463e3fdeb

core (types): Renamed `libervia.backend.core.core_types.MessageData` to `MessageDataLegacy`: There are 2 concurrent models, this one is an historical legacy. The type to use the one from `libervia.backend.models.core`, and it will progressively be used everywhere and fully based on Pydantic.
author Goffi <goffi@goffi.org>
date Fri, 04 Jul 2025 12:28:00 +0200
parents 17fa953c8cd7
children
line wrap: on
line diff
--- a/libervia/backend/memory/encryption.py	Thu Jun 26 17:02:33 2025 +0200
+++ b/libervia/backend/memory/encryption.py	Fri Jul 04 12:28:00 2025 +0200
@@ -26,7 +26,7 @@
 from libervia.backend.core.core_types import (
     EncryptionPlugin,
     EncryptionSession,
-    MessageData,
+    MessageDataLegacy,
 )
 from libervia.backend.core.i18n import D_, _
 from libervia.backend.core.constants import Const as C
@@ -540,7 +540,7 @@
         return mess_data
 
     def is_encryption_requested(
-        self, mess_data: MessageData, namespace: Optional[str] = None
+        self, mess_data: MessageDataLegacy, namespace: Optional[str] = None
     ) -> bool:
         """Helper method to check if encryption is requested in an outgoind message