core: minor style/typos fixes

This commit is contained in:
Goffi 2018-12-01 10:04:17 +01:00
commit a29893ac1f

View file

@ -23,7 +23,6 @@ from sat.core.log import getLogger
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 @@ class XEP_0280(object):
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)