From 368bbd9005120336acc5e418bcf2b296257e719b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 20 Feb 2019 00:30:47 +0000 Subject: [PATCH] Add some more comments in NoAvailableSession handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- examples/echo_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/echo_client.py b/examples/echo_client.py index 565b041..82ee6f5 100644 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -98,6 +98,9 @@ class EchoBot(ClientXMPP): # We received a message from that contained a session that we # don't know about (deleted session storage, etc.). We can't # decrypt the message, and it's going to be lost. + # Here, as we need to initiate a new encrypted session, it is + # best if we send an encrypted message directly. XXX: Is it + # where we talk about self-healing messages? self.encrypted_reply( msg, 'I can\'t decrypt this message as it uses an encrypted '