Changeset 10528

Show
Ignore:
Timestamp:
10/12/08 13:20:35 (6 weeks ago)
Author:
asterix
Message:

update Contact instance in privateChatControl. see #4292

Location:
trunk/src
Files:
2 modified

Legend:

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

    r10518 r10528  
    229229                # for disco... so that disco will learn how to interpret 
    230230                # these caps 
     231                pm_ctrl = None 
    231232                jid = helpers.get_full_jid_from_iq(presence) 
    232233                contact = gajim.contacts.get_contact_from_full_jid(self.name, jid) 
     
    235236                        contact = gajim.contacts.get_gc_contact( 
    236237                                self.name, room_jid, nick) 
     238                        pm_ctrl = gajim.interface.msg_win_mgr.get_control(jid, self.name) 
    237239                        if contact is None: 
    238240                                # TODO: a way to put contact not-in-roster 
     
    268270                contact.caps_hash_method = hash_method 
    269271                contact.caps_hash = hash 
     272                if pm_ctrl: 
     273                        pm_ctrl.update_contact() 
    270274 
    271275        def _capsDiscoCB(self, jid, node, identities, features, dataforms): 
  • trunk/src/groupchat_control.py

    r10518 r10528  
    162162                        self.got_connected() 
    163163                ChatControl.update_ui(self) 
     164 
     165        def update_contact(self): 
     166                self.contact = gajim.contacts.contact_from_gc_contact(self.gc_contact) 
    164167 
    165168