fix disappearing crypto icon

This commit is contained in:
Brendan Taylor 2008-07-18 04:01:07 +00:00
parent b823ee5611
commit 8b1abeba54
1 changed files with 5 additions and 2 deletions

View File

@ -142,7 +142,10 @@ class MessageControl:
if self.resource:
jid += '/' + self.resource
if oldsession.enable_encryption:
crypto_changed = bool(session and session.enable_encryption) != \
bool(oldsession and oldsession.enable_encryption)
if crypto_changed:
self.print_esession_details()
def send_message(self, message, keyID = '', type = 'chat',