Mercurial > libervia-backend
diff src/plugins/plugin_xep_0054.py @ 1315:be3a301540c0 frontends_multi_profiles
core (memory): updateEntityData now accept a "silent" argument to avoid sending signal to frontends when updating an attribute with "signalOnUpdate" flag.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 09 Feb 2015 21:39:51 +0100 |
parents | 0541cb64217e |
children | bd69d341d969 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0054.py Mon Feb 09 21:39:51 2015 +0100 +++ b/src/plugins/plugin_xep_0054.py Mon Feb 09 21:39:51 2015 +0100 @@ -105,7 +105,7 @@ # hashs in memory. Hashed should be shared between profiles for jid_s, avatar_hash in self.avatars_cache.iteritems(): jid_ = jid.JID(jid_s) - self.host.memory.updateEntityData(jid_, "avatar", avatar_hash, profile) + self.host.memory.updateEntityData(jid_, "avatar", avatar_hash, silent=True, profile_key=profile) @defer.inlineCallbacks def profileConnected(self, profile): @@ -122,7 +122,7 @@ @param profile: profile which received the update """ assert not jid_.resource # VCard are retrieved with bare jid - self.host.memory.updateEntityData(jid_, name, value, profile) + self.host.memory.updateEntityData(jid_, name, value, profile_key=profile) if name == "avatar": self.avatars_cache[jid_.userhost()] = value