Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_xep_0308.py @ 4166:a1f7040b5a15
plugin XEP-0424: message retraction update:
- follow specification update (with namespace bump)
- retract from history on message reception for group chat
- send bridge message
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 30 Nov 2023 13:23:53 +0100 |
parents | 3b3cd9453d9b |
children | b1207332cea2 |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0308.py Tue Nov 28 17:41:49 2023 +0100 +++ b/libervia/backend/plugins/plugin_xep_0308.py Thu Nov 30 13:23:53 2023 +0100 @@ -31,7 +31,7 @@ from libervia.backend.core.i18n import _ from libervia.backend.core.log import getLogger from libervia.backend.memory.sqla import History, Message, Subject, joinedload, select -from libervia.backend.models.core import MessageEditData, MessageEdition +from libervia.backend.models.core import MessageData, MessageEdition from libervia.backend.tools.common import data_format from libervia.backend.tools.utils import aio log = getLogger(__name__) @@ -140,7 +140,7 @@ edited_history.extra.setdefault(C.MESS_EXTRA_EDITIONS, []).append(previous_version) await self.host.memory.storage.add(edited_history) - edit_data = MessageEditData(edited_history.serialise()) + edit_data = MessageData(edited_history.serialise()) self.host.bridge.message_update( edited_history.uid, C.MESS_UPDATE_EDIT,