Changeset 9618

Show
Ignore:
Timestamp:
05/11/08 15:41:23 (7 months ago)
Author:
js
Message:

Sorry, last commit missed one hunk.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gajim.py

    r9617 r9618  
    408408                self.gajim_log("%s secured OTR connection started"%trust, 
    409409                                opdata['account'], context.username, no_print=True) 
    410                  
    411                 ctrl = gajim.interface.msg_win_mgr.get_control( 
    412                         unicode(context.username), opdata['account']) 
     410 
     411                ctrl = self.get_control(context.username, opdata['account']) 
    413412                if ctrl: 
    414413                        ctrl.update_otr(True) 
     
    417416                self.gajim_log("Private conversation with %s lost.", opdata['account'], context.username) 
    418417 
    419                 ctrl = gajim.interface.msg_win_mgr.get_control( 
    420                         gajim.get_jid_without_resource(unicode(context.username)), 
    421                         opdata['account']) 
     418                ctrl = self.get_control(context.username, opdata['account']) 
    422419                if ctrl: 
    423                         ctrl.update_otr() 
     420                        ctrl.update_otr(True) 
    424421 
    425422        def still_secure(self, opdata=None, context=None, is_reply=0): 
    426                 ctrl = gajim.interface.msg_win_mgr.get_control( 
    427                         gajim.get_jid_without_resource(unicode(context.username)), 
    428                         opdata['account']) 
     423                ctrl = self.get_control(context.username, opdata['account']) 
    429424                if ctrl: 
    430425                        ctrl.update_otr(True)