don't add self contact row when we our a presance from our own resource

This commit is contained in:
Yann Leboulanger 2007-11-08 20:51:50 +00:00
parent d1452febce
commit b9a1365d50
1 changed files with 2 additions and 1 deletions

View File

@ -279,7 +279,8 @@ class RosterWindow:
if len(self.get_contact_iter(jid, account)): if len(self.get_contact_iter(jid, account)):
return return
if jid == gajim.get_jid_from_account(account): if jid == gajim.get_jid_from_account(account):
self.add_self_contact(account) if contact.resource != gajim.connections[account].server_resource:
self.add_self_contact(account)
return return
if gajim.jid_is_transport(contact.jid): if gajim.jid_is_transport(contact.jid):
# if jid is transport, check if we wanna show it in roster # if jid is transport, check if we wanna show it in roster