example-bot: specify why we automatically trust when encrypting
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
1496becac7
commit
36e385a6ea
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue