Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -35,6 +35,7 @@ from libervia.backend.memory.sqla import History, Message, Subject, joinedload,
|
|||
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 @@ class XEP_0308:
|
|||
|
||||
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 @@ class XEP_0308:
|
|||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue