don't add self contact row if it's not needed
This commit is contained in:
parent
f76aa7e2ec
commit
43bacb684f
|
@ -349,6 +349,15 @@ class RosterWindow:
|
||||||
self.draw_contact(jid, account)
|
self.draw_contact(jid, account)
|
||||||
self.draw_avatar(jid, account)
|
self.draw_avatar(jid, account)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
contact = gajim.contacts.get_first_contact_from_jid(account, jid)
|
||||||
|
if not contact:
|
||||||
|
return
|
||||||
|
showOffline = gajim.config.get('showoffline')
|
||||||
|
if (contact.show in ('offline', 'error')) and not showOffline and \
|
||||||
|
not gajim.awaiting_events[account].has_key(jid):
|
||||||
|
return
|
||||||
|
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
iterAcct = self.get_account_iter(account)
|
iterAcct = self.get_account_iter(account)
|
||||||
model.append(iterAcct, (None, gajim.nicks[account], 'self_contact', jid,
|
model.append(iterAcct, (None, gajim.nicks[account], 'self_contact', jid,
|
||||||
|
|
Loading…
Reference in New Issue