It does not need to be a message.
This commit is contained in:
parent
ff129a19a0
commit
59fb1857ef
|
@ -250,11 +250,11 @@ class EncryptedStanzaSession(StanzaSession):
|
||||||
c.NT.mac = base64.b64encode(self.hmac(self.km_s, m_content + \
|
c.NT.mac = base64.b64encode(self.hmac(self.km_s, m_content + \
|
||||||
crypto.encode_mpi(old_en_counter)))
|
crypto.encode_mpi(old_en_counter)))
|
||||||
|
|
||||||
msgtxt = '[This message is part of an encrypted session. ' \
|
msgtxt = '[This is part of an encrypted session. ' \
|
||||||
'If you see this message, something went wrong.]'
|
'If you see this message, something went wrong.]'
|
||||||
lang = os.getenv('LANG')
|
lang = os.getenv('LANG')
|
||||||
if lang is not None and lang != 'en': # we're not english
|
if lang is not None and lang != 'en': # we're not english
|
||||||
msgtxt = _('[This message is part of an encrypted session. '
|
msgtxt = _('[This is part of an encrypted session. '
|
||||||
'If you see this message, something went wrong.]') + ' (' + \
|
'If you see this message, something went wrong.]') + ' (' + \
|
||||||
msgtxt + ')'
|
msgtxt + ')'
|
||||||
stanza.setBody(msgtxt)
|
stanza.setBody(msgtxt)
|
||||||
|
|
Loading…
Reference in New Issue