Mercurial > libervia-backend
changeset 1335:2c6c93438f74 frontends_multi_profiles
plugin XEP-0085: fixed bad call to udateEntityData
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 23 Feb 2015 18:04:25 +0100 |
parents | 15e177584d82 |
children | 2ecc07a8f91b |
files | src/plugins/plugin_xep_0085.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0085.py Mon Feb 23 18:04:25 2015 +0100 +++ b/src/plugins/plugin_xep_0085.py Mon Feb 23 18:04:25 2015 +0100 @@ -151,7 +151,7 @@ @param type_: parameter type """ if (category, name) == (PARAM_KEY, PARAM_NAME): - self.updateEntityData(C.ENTITY_ALL, True if bool("true") else DELETE_VALUE, profile_key=profile) + self.updateEntityData(C.ENTITY_ALL, True if bool("true") else DELETE_VALUE, profile=profile) return False return True @@ -173,11 +173,11 @@ try: domish.generateElementsNamed(message.elements(), name="active").next() # contact enabled Chat State Notifications - self.updateEntityData(from_jid, True, profile_key=profile) + self.updateEntityData(from_jid, True, profile=profile) except StopIteration: if message.getAttribute('type') == 'chat': # contact didn't enable Chat State Notifications - self.updateEntityData(from_jid, False, profile_key=profile) + self.updateEntityData(from_jid, False, profile=profile) return True except StopIteration: pass @@ -260,7 +260,7 @@ except (exceptions.UnknownEntityError, KeyError): if forceEntityData: # enable it for the first time - self.updateEntityData(to_jid, True, profile_key=profile) + self.updateEntityData(to_jid, True, profile=profile) return True # wait for the first message before sending states return False