Mercurial > libervia-backend
diff src/plugins/plugin_xep_0085.py @ 698:d731ae066158
core: sendMessage's options parameter has been renamed to extra to be consistent with newMessage
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 13 Nov 2013 13:58:10 +0100 |
parents | 0c84fb112d70 |
children | 6edd9bda4e3f |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0085.py Wed Nov 13 13:57:36 2013 +0100 +++ b/src/plugins/plugin_xep_0085.py Wed Nov 13 13:58:10 2013 +0100 @@ -185,8 +185,8 @@ # 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 @@ '', '', self.mess_type, - options={"chat_state": state}, + extra={"chat_state": state}, profile_key=self.profile) self.state = state if not self.timer is None: