Changeset 8719

Show
Ignore:
Timestamp:
09/04/07 22:16:15 (15 months ago)
Author:
asterix
Message:

clear contact list when we connect. fixes #3234

Location:
branches/gajim_0.11.1/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/common/contacts.py

    r8683 r8719  
    189189                if len(self._contacts[account][contact.jid]) == 0: 
    190190                        del self._contacts[account][contact.jid] 
     191 
     192        def clear_contacts(self, account): 
     193                self._contacts[account] = {} 
    191194 
    192195        def remove_jid(self, account, jid): 
  • branches/gajim_0.11.1/src/roster_window.py

    r8718 r8719  
    11201120                if not gajim.groups.has_key(account): 
    11211121                        gajim.groups[account] = {} 
     1122                # Empty contact list 
     1123                gajim.contacts.clear_contacts(account) 
    11221124                for jid in array.keys(): 
    11231125                        jids = jid.split('/')