Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_xep_0308.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | b1207332cea2 |
children |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0308.py Tue Jun 18 12:06:45 2024 +0200 +++ b/libervia/backend/plugins/plugin_xep_0308.py Wed Jun 19 18:44:57 2024 +0200 @@ -35,6 +35,7 @@ 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__) @@ -139,7 +140,9 @@ if store: flag_modified(edited_history, "extra") - edited_history.extra.setdefault(C.MESS_EXTRA_EDITIONS, []).append(previous_version) + edited_history.extra.setdefault(C.MESS_EXTRA_EDITIONS, []).append( + previous_version + ) await self.host.memory.storage.add(edited_history) edit_data = MessageData(edited_history.serialise()) @@ -271,7 +274,7 @@ last_mess[5], last_mess[-1], # message will be updated and signal sent on reception in group chat - store = not is_group_chat + store=not is_group_chat, ) serialised = edited_history.serialise()