Changeset 9429

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

don't remove metacontact when we reconnect. fixes #3771

Location:
trunk/src
Files:
2 modified

Legend:

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

    r9424 r9429  
    217217                self._contacts[account] = {} 
    218218 
    219         def remove_jid(self, account, jid): 
     219        def remove_jid(self, account, jid, remove_meta=True): 
    220220                '''Removes all contacts for a given jid''' 
    221221                if not self._contacts.has_key(account): 
     
    224224                        return 
    225225                del self._contacts[account][jid] 
    226                 # remove metacontacts info 
    227                 self.remove_metacontact(account, jid) 
     226                if remove_meta: 
     227                        # remove metacontacts info 
     228                        self.remove_metacontact(account, jid) 
    228229 
    229230        def get_contacts(self, account, jid): 
  • trunk/src/roster_window.py

    r9413 r9429  
    12951295                for jid in array.keys(): 
    12961296                        # Remove old Contact instances 
    1297                         gajim.contacts.remove_jid(account, jid) 
     1297                        gajim.contacts.remove_jid(account, jid, remove_meta=False) 
    12981298                        jids = jid.split('/') 
    12991299                        # get jid