core: minor style/typos fixes
This commit is contained in:
parent
af64d24d52
commit
a29893ac1f
1 changed files with 16 additions and 36 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue