Author: asterix Date: 2006-07-19 13:53:21 +0200 (Wed, 19 Jul 2006) New Revision: 6580
Modified: trunk/src/roster_window.py Log: don't add self contact row if it's not needed
Modified: trunk/src/roster_window.py =================================================================== --- trunk/src/roster_window.py 2006-07-19 11:39:34 UTC (rev 6579) +++ trunk/src/roster_window.py 2006-07-19 11:53:21 UTC (rev 6580) @@ -349,6 +349,15 @@ self.draw_contact(jid, account) self.draw_avatar(jid, account) 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() iterAcct = self.get_account_iter(account) model.append(iterAcct, (None, gajim.nicks[account], 'self_contact', jid,