core: sendMessage's options parameter has been renamed to extra to be consistent with newMessage
This commit is contained in:
parent
60f03a623e
commit
9d42c269db
1 changed files with 24 additions and 22 deletions
|
|
@ -185,8 +185,8 @@ class XEP_0085(object):
|
|||
# launch the chat state machine (init the timer)
|
||||
self.__chatStateActive(to_jid, mess_data["type"], profile)
|
||||
except StopIteration:
|
||||
if "chat_state" in mess_data["options"]:
|
||||
state = mess_data["options"]["chat_state"]
|
||||
if "chat_state" in mess_data["extra"]:
|
||||
state = mess_data["extra"].pop("chat_state")
|
||||
assert(state in CHAT_STATES)
|
||||
message.addElement(state, NS_CHAT_STATES)
|
||||
return mess_data
|
||||
|
|
@ -303,7 +303,7 @@ class ChatStateMachine:
|
|||
'',
|
||||
'',
|
||||
self.mess_type,
|
||||
options={"chat_state": state},
|
||||
extra={"chat_state": state},
|
||||
profile_key=self.profile)
|
||||
self.state = state
|
||||
if not self.timer is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue