consolidate e2e status messages

This commit is contained in:
Brendan Taylor 2008-09-08 15:51:13 +00:00
parent 5f2e4c818c
commit 9adc632d67
1 changed files with 3 additions and 4 deletions

View File

@ -1798,13 +1798,12 @@ class ChatControl(ChatControlBase):
'''print esession settings to textview'''
e2e_is_active = bool(self.session) and self.session.enable_encryption
if e2e_is_active:
msg = _('E2E encryption enabled')
ChatControlBase.print_conversation_line(self, msg, 'status', '', None)
msg = _('This session is encrypted')
if self.session.is_loggable():
msg = _('Session WILL be logged')
msg += _(' and WILL be logged')
else:
msg = _('Session WILL NOT be logged')
msg += _(' and WILL NOT be logged')
ChatControlBase.print_conversation_line(self, msg, 'status', '', None)