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

consolidate e2e status messages

parent 5f2e4c81
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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