diff src/browser/sat_browser/blog.py @ 638:63697f082e8a frontends_multi_profiles

browser side: fixed use of profile for listeners
author Goffi <goffi@goffi.org>
date Tue, 24 Feb 2015 14:40:47 +0100
parents 9092e624bb27
children 6d3142b782c3
line wrap: on
line diff
--- a/src/browser/sat_browser/blog.py	Mon Feb 23 18:47:27 2015 +0100
+++ b/src/browser/sat_browser/blog.py	Tue Feb 24 14:40:47 2015 +0100
@@ -390,11 +390,12 @@
         quick_widgets.QuickWidget.onDelete(self)
         self.host.removeListener('avatar', self.avatarListener)
 
-    def onAvatarUpdate(self, jid_, hash_):
+    def onAvatarUpdate(self, jid_, hash_, profile):
         """Called on avatar update events
 
         @param jid_: jid of the entity with updated avatar
         @param hash_: hash of the avatar
+        @param profile: %(doc_profile)s
         """
         whoami = self.host.profiles[self.profile].whoami
         if self.isJidAccepted(jid_) or jid_.bare == whoami.bare: