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:
parent
8302d09cf6
commit
0df0b0a5d0
1 changed files with 21 additions and 18 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue