Changeset 9856

Show
Ignore:
Timestamp:
06/27/08 18:48:05 (5 months ago)
Author:
asterix
Message:

don't send our presence when we unblock a contact and we are invisible. Fixes #4001

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/roster_window.py

    r9847 r9856  
    24512451                if group_list is None: 
    24522452                        status = gajim.connections[jid_account].connected 
     2453                        if gajim.SHOW_LIST[status] == 'invisible': 
     2454                                # Don't send our presence if we're invisible 
     2455                                return 
    24532456                        msg = gajim.connections[jid_account].status 
    24542457                        if not self.regroup: 
     
    24632466                                else:   # accounts merged 
    24642467                                        show = helpers.get_global_show() 
     2468                                if gajim.SHOW_LIST[show] == 'invisible': 
     2469                                        # Don't send our presence if we're invisible 
     2470                                        continue 
    24652471                                if account not in accounts: 
    24662472                                        if gajim.connections[account].privacy_rules_supported: