Changeset 8950

Show
Ignore:
Timestamp:
11/08/07 21:55:18 (13 months ago)
Author:
asterix
Message:

fix self contact behaviour

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.2/src/roster_window.py

    r8922 r8950  
    264264                        return 
    265265                if jid == gajim.get_jid_from_account(account): 
    266                         self.add_self_contact(account) 
     266                        if contact.resource != gajim.connections[account].server_resource: 
     267                                self.add_self_contact(account) 
    267268                        return 
    268269                if gajim.jid_is_transport(contact.jid): 
     
    13541355                                                # ...get the contact info for our other online resources 
    13551356                                                for resource in resources: 
     1357                                                        # Check if we already have this resource 
     1358                                                        found = False 
     1359                                                        for contact_ in contacts: 
     1360                                                                if contact_.resource == resource: 
     1361                                                                        found = True 
     1362                                                                        break 
     1363                                                        if found: 
     1364                                                                continue 
    13561365                                                        show = roster.getShow(jid+'/'+resource) 
    13571366                                                        if not show: