From 2bf4c6666ea7a9703ca1c70ca555bc4b13dfbf21 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Sun, 13 Feb 2022 12:33:43 -0500 Subject: [PATCH] Fix initializing a TDlib instance after subscribing to the transport --- xmpp/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmpp/handlers.go b/xmpp/handlers.go index bb80bb0..6f8c877 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -188,7 +188,7 @@ func handlePresence(s xmpp.Sender, p stanza.Presence) { case "unavailable", "error": session.Disconnect(resource, false) // go online - case "probe", "", "online": + case "probe", "", "online", "subscribe": // due to the weird implementation of go-tdlib wrapper, it won't // return the client instance until successful authorization go func() {