plugin OTR: do profile session init in profileConnecting, so it is done before receiving any stanza

This commit is contained in:
Goffi 2019-02-25 08:07:00 +01:00
commit a56c9dd845

View file

@ -368,7 +368,7 @@ class OTR(object):
self.skipped_profiles.add(profile)
@defer.inlineCallbacks
def profileConnected(self, client):
def profileConnecting(self, client):
if client.profile in self.skipped_profiles:
return
ctxMng = client._otr_context_manager = ContextManager(self, client)