Changeset 9981 for trunk/src/gajim.py

Show
Ignore:
Timestamp:
07/22/08 16:32:37 (4 months ago)
Author:
js
Message:

* End ESession when remote signs off.
* Fix typo.
* Better code in conversation_textview.py.

@bct: Your diff didn't work, I had to move it + add an if. Seems to
work now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gajim.py

    r9980 r9981  
    774774                                gajim.connections[account]. \ 
    775775                                        remove_transfers_for_contact(contact1) 
     776 
     777                                # disable encryption, since if any messages are 
     778                                # lost they'll be not decryptable (note that 
     779                                # this contradicts XEP-0201 - trying to get the 
     780                                # in the XEP, though) 
     781                                if gajim.connections[account].sessions. \ 
     782                                has_key(ji): 
     783                                        for sess in gajim.connections \ 
     784                                        [account]. sessions[ji].values(): 
     785                                                if sess.enable_encryption: 
     786                                                        sess.terminate_e2e() 
     787                                                        gajim.connections \ 
     788                                                        [account]. \ 
     789                                                        delete_session(jid, 
     790                                                        sess.thread_id) 
     791 
    776792                        self.roster.chg_contact_status(contact1, array[1], 
    777793                                status_message, account) 
     
    787803                        elif old_show > 1 and new_show < 2: 
    788804                                notify.notify('contact_disconnected', jid,  
    789                                         ccount, status_message) 
     805                                        account, status_message) 
    790806                                if self.remote_ctrl: 
    791807                                        self.remote_ctrl.raise_signal(