ask all unknown vcard at startup
This commit is contained in:
parent
c94d1ca48a
commit
6a432bbb67
1 changed files with 9 additions and 2 deletions
|
@ -583,7 +583,7 @@ class RosterWindow:
|
||||||
def change_roster_style(self, option):
|
def change_roster_style(self, option):
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
model.foreach(self._change_style, option)
|
model.foreach(self._change_style, option)
|
||||||
|
|
||||||
def draw_roster(self):
|
def draw_roster(self):
|
||||||
'''Clear and draw roster'''
|
'''Clear and draw roster'''
|
||||||
self.tree.get_model().clear()
|
self.tree.get_model().clear()
|
||||||
|
@ -593,7 +593,7 @@ class RosterWindow:
|
||||||
self.add_contact_to_roster(jid, acct)
|
self.add_contact_to_roster(jid, acct)
|
||||||
self.make_menu() # re-make menu in case an account was removed
|
self.make_menu() # re-make menu in case an account was removed
|
||||||
#FIXME: maybe move thie make_menu() in where we remove the account?
|
#FIXME: maybe move thie make_menu() in where we remove the account?
|
||||||
|
|
||||||
def fill_contacts_and_groups_dicts(self, array, account):
|
def fill_contacts_and_groups_dicts(self, array, account):
|
||||||
'''fill gajim.contacts and gajim.groups'''
|
'''fill gajim.contacts and gajim.groups'''
|
||||||
if not gajim.contacts.has_key(account):
|
if not gajim.contacts.has_key(account):
|
||||||
|
@ -640,6 +640,13 @@ class RosterWindow:
|
||||||
ishidden = True
|
ishidden = True
|
||||||
gajim.groups[account][g] = { 'expand': ishidden }
|
gajim.groups[account][g] = { 'expand': ishidden }
|
||||||
|
|
||||||
|
pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(ji)
|
||||||
|
if pixbuf == 'ask':
|
||||||
|
jid_with_resource = contact1.jid
|
||||||
|
if contact1.resource:
|
||||||
|
jid_with_resource += '/' + contact1.resource
|
||||||
|
gajim.connections[account].request_vcard(jid_with_resource)
|
||||||
|
|
||||||
def chg_contact_status(self, contact, show, status, account):
|
def chg_contact_status(self, contact, show, status, account):
|
||||||
'''When a contact changes his or her status'''
|
'''When a contact changes his or her status'''
|
||||||
showOffline = gajim.config.get('showoffline')
|
showOffline = gajim.config.get('showoffline')
|
||||||
|
|
Loading…
Add table
Reference in a new issue