request vcard to real jid when we ask avatar. Fixes #3054

This commit is contained in:
Yann Leboulanger 2007-05-12 21:49:27 +00:00
parent 1674110503
commit 936f8f8e93
1 changed files with 10 additions and 2 deletions

View File

@ -1016,10 +1016,18 @@ class GroupchatControl(ChatControlBase):
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)