Fix initializing a TDlib instance after subscribing to the transport
This commit is contained in:
parent
1e83d54107
commit
2bf4c6666e
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue