Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0280.py @ 2698:5060cbeec01e
core: minor style/typos fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Dec 2018 10:04:17 +0100 |
parents | 56f94936df1e |
children | 003b8b4b56a7 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0280.py Sat Dec 01 09:59:48 2018 +0100 +++ b/sat/plugins/plugin_xep_0280.py Sat Dec 01 10:04:17 2018 +0100 @@ -23,7 +23,6 @@ log = getLogger(__name__) from sat.core import exceptions from sat.core.constants import Const as C -from sat.core.xmpp import SatMessageProtocol from twisted.words.protocols.jabber.error import StanzaError from twisted.internet import defer from wokkel import disco, iwokkel @@ -148,9 +147,9 @@ message_elt.addChild(c) return True elif carbons_elt.name == "sent": - # on send we parse the message and just add it to history + # on sent we parse the message and just add it to history # and send it to frontends (without normal sending treatments) - mess_data = SatMessageProtocol.parseMessage(cc_message_elt, client) + mess_data = client.messageProt.parseMessage(cc_message_elt) if not mess_data["message"] and not mess_data["subject"]: return False client.messageAddToHistory(mess_data)