Mercurial > libervia-backend
changeset 1264:60dfa2f5d61f frontends_multi_profiles
plugin XEP-0085: disabled a problematic assert (see FIXME)
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 10 Dec 2014 18:37:14 +0100 |
parents | cfd636203e8f |
children | e3a9ea76de35 |
files | src/plugins/plugin_xep_0085.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0085.py Wed Dec 10 18:36:11 2014 +0100 +++ b/src/plugins/plugin_xep_0085.py Wed Dec 10 18:37:14 2014 +0100 @@ -163,7 +163,7 @@ if self.__isMUC(from_jid, profile): from_jid = from_jid.userhostJID() else: # update entity data for one2one chat - assert(from_jid.resource) + # assert from_jid.resource # FIXME: assert doesn't work on normal message from server (e.g. server announce), because there is no resource try: domish.generateElementsNamed(message.elements(), name="body").next() try: @@ -249,7 +249,7 @@ # check if notifications should be sent to this contact if self.__isMUC(to_jid, profile): return True - assert(to_jid.resource or not self.host.memory.isContactConnected(to_jid, profile)) + assert to_jid.resource or not self.host.memory.isContactConnected(to_jid, profile) try: return self.host.memory.getEntityDatum(to_jid, ENTITY_KEY, profile) except (exceptions.UnknownEntityError, KeyError):