Author: asterix Date: 2007-05-12 23:49:27 +0200 (Sat, 12 May 2007) New Revision: 8144
Modified: trunk/src/groupchat_control.py Log: request vcard to real jid when we ask avatar. Fixes #3054
Modified: trunk/src/groupchat_control.py =================================================================== --- trunk/src/groupchat_control.py 2007-05-12 20:30:26 UTC (rev 8143) +++ trunk/src/groupchat_control.py 2007-05-12 21:49:27 UTC (rev 8144) @@ -1016,10 +1016,18 @@ server = gajim.get_server_from_jid(self.room_jid) if gajim.config.get('ask_avatars_on_startup') and \ not server.startswith('irc'): - fjid = self.room_jid + '/' + nick + if j: + fjid = j + if resource: + fjid += '/' + resource + else: + fjid = self.room_jid + '/' + nick pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(fjid, True) if pixbuf == 'ask': - gajim.connections[self.account].request_vcard(fjid, True) + if j: + gajim.connections[self.account].request_vcard(fjid) + else: + gajim.connections[self.account].request_vcard(fjid, True) if nick == self.nick: # we became online self.got_connected() self.list_treeview.expand_row((model.get_path(role_iter)), False)