example-bot: specify why we automatically trust when encrypting

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-02-27 12:15:06 +00:00
parent 1496becac7
commit 36e385a6ea
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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: