Skip to content
Snippets Groups Projects
Commit 8b1abeba authored by Brendan Taylor's avatar Brendan Taylor
Browse files

fix disappearing crypto icon

parent b823ee56
No related branches found
No related tags found
No related merge requests found
......@@ -142,8 +142,11 @@ class MessageControl:
if self.resource:
jid += '/' + self.resource
if oldsession.enable_encryption:
self.print_esession_details()
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',
chatstate = None, msg_id = None, composing_xep = None, resource = None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment