diff libervia/backend/plugins/plugin_xep_0424.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 7eda7cb8a15c
children 3c97717fd662
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0424.py	Thu Jun 26 17:02:33 2025 +0200
+++ b/libervia/backend/plugins/plugin_xep_0424.py	Fri Jul 04 12:28:00 2025 +0200
@@ -27,7 +27,7 @@
 
 from libervia.backend.core import exceptions
 from libervia.backend.core.constants import Const as C
-from libervia.backend.core.core_types import MessageData, SatXMPPEntity
+from libervia.backend.core.core_types import MessageDataLegacy, SatXMPPEntity
 from libervia.backend.core.i18n import D_, _
 from libervia.backend.core.log import getLogger
 from libervia.backend.memory.sqla_mapping import History
@@ -210,7 +210,7 @@
             del history.extra["attachments"]
         await self.host.memory.storage.add(history)
 
-        retract_data = MessageData(history.serialise())
+        retract_data = MessageDataLegacy(history.serialise())
         self.host.bridge.message_update(
             history.uid,
             C.MESS_UPDATE_RETRACT,