core: sendMessageTrigger now manage pre and post treatments, which happen before or after XML generation
This commit is contained in:
parent
bd3890a8f0
commit
93826f1ce8
1 changed files with 29 additions and 23 deletions
|
|
@ -175,7 +175,7 @@ class XEP_0085(object):
|
|||
break
|
||||
return True
|
||||
|
||||
def sendMessageTrigger(self, mess_data, treatments, profile):
|
||||
def sendMessageTrigger(self, mess_data, pre_xml_treatments, post_xml_treatments, profile):
|
||||
"""
|
||||
Eventually add the chat state to the message and initiate
|
||||
the state machine when sending an "active" state.
|
||||
|
|
@ -198,7 +198,7 @@ class XEP_0085(object):
|
|||
message.addElement(state, NS_CHAT_STATES)
|
||||
return mess_data
|
||||
|
||||
treatments.addCallback(treatment)
|
||||
post_xml_treatments.addCallback(treatment)
|
||||
return True
|
||||
|
||||
def __checkActivation(self, to_jid, forceEntityData, profile):
|
||||
|
|
|
|||
Loading…
Reference in a new issue