Changeset 9770

Show
Ignore:
Timestamp:
06/08/08 16:35:40 (6 months ago)
Author:
jim++
Message:

Don't act like if self contact is in group General. See #4000.
Don't make General group visible when we have self contact.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r9769 r9770  
    954954                if contact.is_observer(): 
    955955                        groups = [_('Observers')] 
    956                 elif not groups: 
     956                elif not groups and \ 
     957                not contact.jid == gajim.get_jid_from_account(account): 
     958                        # no group, and not self contact 
    957959                        groups = [_('General')] 
    958960 
     
    13761378                        for _acc in accounts: 
    13771379                                for contact in gajim.contacts.iter_contacts(_acc): 
    1378                                         # Is this contact in this group ? 
     1380                                        # Is this contact in this group ? (last part of if check if it's  
     1381                                        # self contact)  
    13791382                                        if group in contact.groups or (group == _('General') and not \ 
    1380                                         contact.groups): 
     1383                                        contact.groups and \ 
     1384                                        not contact.jid == gajim.get_jid_from_account(account)): 
    13811385                                                if self.contact_is_visible(contact, _acc): 
    13821386                                                        return True