print in chat control when other side de-activate esession.
This commit is contained in:
parent
ced1285de9
commit
be867b7843
2 changed files with 4 additions and 3 deletions
|
@ -2380,8 +2380,9 @@ class ChatControl(ChatControlBase):
|
||||||
self._show_lock_image(e2e_is_active, 'E2E', e2e_is_active, self.session and \
|
self._show_lock_image(e2e_is_active, 'E2E', e2e_is_active, self.session and \
|
||||||
self.session.is_loggable(), self.session and self.session.verified_identity)
|
self.session.is_loggable(), self.session and self.session.verified_identity)
|
||||||
|
|
||||||
def print_session_details(self):
|
def print_session_details(self, old_session=None):
|
||||||
if isinstance(self.session, EncryptedStanzaSession):
|
if isinstance(self.session, EncryptedStanzaSession) or \
|
||||||
|
(old_session and isinstance(old_session, EncryptedStanzaSession)):
|
||||||
self.print_esession_details()
|
self.print_esession_details()
|
||||||
elif isinstance(self.session, ArchivingStanzaSession):
|
elif isinstance(self.session, ArchivingStanzaSession):
|
||||||
self.print_archiving_session_details()
|
self.print_archiving_session_details()
|
||||||
|
|
|
@ -219,7 +219,7 @@ class MessageControl(object):
|
||||||
ArchivingStanzaSession) and oldsession.archiving)
|
ArchivingStanzaSession) and oldsession.archiving)
|
||||||
|
|
||||||
if crypto_changed or archiving_changed:
|
if crypto_changed or archiving_changed:
|
||||||
self.print_session_details()
|
self.print_session_details(oldsession)
|
||||||
|
|
||||||
def remove_session(self, session):
|
def remove_session(self, session):
|
||||||
if session != self.session:
|
if session != self.session:
|
||||||
|
|
Loading…
Add table
Reference in a new issue