fix disappearing crypto icon
This commit is contained in:
parent
b823ee5611
commit
8b1abeba54
|
@ -142,8 +142,11 @@ class MessageControl:
|
||||||
if self.resource:
|
if self.resource:
|
||||||
jid += '/' + self.resource
|
jid += '/' + self.resource
|
||||||
|
|
||||||
if oldsession.enable_encryption:
|
crypto_changed = bool(session and session.enable_encryption) != \
|
||||||
self.print_esession_details()
|
bool(oldsession and oldsession.enable_encryption)
|
||||||
|
|
||||||
|
if crypto_changed:
|
||||||
|
self.print_esession_details()
|
||||||
|
|
||||||
def send_message(self, message, keyID = '', type = 'chat',
|
def send_message(self, message, keyID = '', type = 'chat',
|
||||||
chatstate = None, msg_id = None, composing_xep = None, resource = None,
|
chatstate = None, msg_id = None, composing_xep = None, resource = None,
|
||||||
|
|
Loading…
Reference in New Issue