Changeset 8483

Show
Ignore:
Timestamp:
08/10/07 01:04:02 (16 months ago)
Author:
asterix
Message:

clear contact list when we connect. fixes #3234

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/contacts.py

    r8447 r8483  
    202202                if len(self._contacts[account][contact.jid]) == 0: 
    203203                        del self._contacts[account][contact.jid] 
     204 
     205        def clear_contacts(self, account): 
     206                self._contacts[account] = {} 
    204207 
    205208        def remove_jid(self, account, jid): 
  • trunk/src/roster_window.py

    r8482 r8483  
    12241224                if not gajim.groups.has_key(account): 
    12251225                        gajim.groups[account] = {} 
     1226                # Empty contact list 
     1227                gajim.contacts.clear_contacts(account) 
    12261228                for jid in array.keys(): 
    12271229                        jids = jid.split('/')