From 36e385a6ea7bb2ade782d61d72e860e8426f3743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 27 Feb 2019 12:15:06 +0000 Subject: [PATCH] example-bot: specify why we automatically trust when encrypting 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, 2 insertions(+), 1 deletion(-) diff --git a/examples/echo_client.py b/examples/echo_client.py index af526ba..5387f6f 100644 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -170,7 +170,8 @@ class EchoBot(ClientXMPP): except UndecidedException as exn: # The library prevents us from sending a message to an # untrusted/undecided barejid, so we need to make a decision here. - # This is where you prompt your user to ask what to do. + # This is where you prompt your user to ask what to do. In + # this bot we will automatically trust undecided recipients. self['xep_0384'].trust(exn.bare_jid, exn.device, exn.ik) # TODO: catch NoEligibleDevicesException and MissingBundleException except Exception as exn: