diff src/plugins/plugin_xep_0085.py @ 1380:8aa32bcc3a9c

plugin XEP-0085, quick_frontend: fixes chat states
author souliane <souliane@mailoo.org>
date Fri, 20 Mar 2015 17:47:48 +0100
parents f29beedb33b0
children 069ad98b360d
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0085.py	Fri Mar 20 16:29:03 2015 +0100
+++ b/src/plugins/plugin_xep_0085.py	Fri Mar 20 17:47:48 2015 +0100
@@ -140,7 +140,7 @@
             self.host.memory.updateEntityData(entity_jid, ENTITY_KEY, value, profile_key=profile)
         if not value or value == DELETE_VALUE:
             # reinit chat state UI for this or these contact(s)
-            self.host.bridge.chatStateReceived(entity_jid.full(), "", profile)
+            self.host.bridge.chatStateReceived(unicode(entity_jid), "", profile)
 
     def paramUpdateTrigger(self, name, value, category, type_, profile):
         """Reset all the existing chat state entity data associated with this profile after a parameter modification.
@@ -151,7 +151,7 @@
         @param type_: parameter type
         """
         if (category, name) == (PARAM_KEY, PARAM_NAME):
-            self.updateCache(C.ENTITY_ALL, True if bool("true") else DELETE_VALUE, profile=profile)
+            self.updateCache(C.ENTITY_ALL, True if C.bool(value) else DELETE_VALUE, profile=profile)
             return False
         return True