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.
This commit is contained in:
Goffi 2025-07-04 12:28:00 +02:00
commit 0df0b0a5d0

View file

@ -26,7 +26,7 @@ from twisted.python import failure
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 @@ class EncryptionHandler:
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