diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-13 20:33:43 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-13 20:33:43 +0300 |
commit | 2bf4c6666ea7a9703ca1c70ca555bc4b13dfbf21 (patch) | |
tree | 6fde9b3c489fa41d7b8d6328b4fad55d54b189b9 /xmpp/handlers.go | |
parent | 1e83d54107008ecb9b0f60c822bb146cc07f104b (diff) |
Fix initializing a TDlib instance after subscribing to the transport
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r-- | xmpp/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |