From 02b45a233e934068ce035ca2e1a1365cb7b67599 Mon Sep 17 00:00:00 2001 From: Nico Date: Fri, 8 Sep 2017 17:04:46 +0200 Subject: [PATCH] Set IdentityAutoTrust to true See yowsup issue #2212 --- transWhat/yowsupwrapper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transWhat/yowsupwrapper.py b/transWhat/yowsupwrapper.py index 98999ed..484b97d 100644 --- a/transWhat/yowsupwrapper.py +++ b/transWhat/yowsupwrapper.py @@ -57,7 +57,8 @@ from yowsup.layers.protocol_contacts import YowContactsIqProtocolLayer from yowsup.layers.protocol_chatstate import YowChatstateProtocolLayer from yowsup.layers.protocol_privacy import YowPrivacyProtocolLayer from yowsup.layers.protocol_profiles import YowProfilesProtocolLayer -from yowsup.layers.protocol_calls import YowCallsProtocolLayer +from yowsup.layers.protocol_calls import YowCallsProtocolLayer +from yowsup.layers.axolotl.props import PROP_IDENTITY_AUTOTRUST # ProtocolEntities @@ -136,6 +137,7 @@ class YowsupApp(object): """ self.stack.setProp(YowAuthenticationProtocolLayer.PROP_CREDENTIALS, (username, password)) + self.stack.setProp(PROP_IDENTITY_AUTOTRUST, True) # self.stack.setProp(YowIqProtocolLayer.PROP_PING_INTERVAL, 5) try: