Changeset 9588

Show
Ignore:
Timestamp:
05/07/08 00:25:27 (3 months ago)
Author:
steve-e
Message:

Add transports to roster only once. Fixes #3911, #3923.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r9587 r9588  
    344344                        # We are a normal contact. Add us to our groups. 
    345345                        if not groups: 
    346                                 if contact.is_transport(): 
    347                                         contact.groups = [_('Transports')] 
    348346                                if contact.is_observer(): 
    349347                                        contact.groups = [_('Observers')] 
     
    621619 
    622620                # Draw the contact and its groups contact 
    623                 if contact.is_transport(): 
    624                         contact.groups = [_('Transports')] 
    625621                if is_observer: 
    626622                        contact.groups = [_('Observers')] 
     
    668664                # Draw all groups of the contact 
    669665                groups = contact.groups 
    670                 if contact.is_transport(): 
    671                         contact.groups = [_('Transports')] 
    672666                if contact.is_observer(): 
    673667                        contact.groups = [_('Observers')] 
     
    11281122 
    11291123                groups = contact.groups 
    1130                 if contact.is_transport(): 
    1131                         contact.groups = [_('Transports')] 
    11321124                if contact.is_observer(): 
    11331125                        contact.groups = [_('Observers')] 
     
    14621454                        if jid in attached_keys: 
    14631455                                keyID = attached_keys[attached_keys.index(jid) + 1] 
     1456 
     1457                        if gajim.jid_is_transport(jid): 
     1458                                array[jid]['groups'] = [_('Transports')] 
    14641459                        contact1 = gajim.contacts.create_contact(jid = ji, name = name, 
    14651460                                groups = array[jid]['groups'], show = show, status = status,