|
|
|
@ -236,8 +236,8 @@ func handlePresence(s xmpp.Sender, p stanza.Presence) {
|
|
|
|
|
delete(sessions, bareFromJid)
|
|
|
|
|
case "unavailable", "error":
|
|
|
|
|
session.Disconnect()
|
|
|
|
|
case "", "online":
|
|
|
|
|
// due to the weird implentation of go-tdlib wrapper, it won't
|
|
|
|
|
case "probe", "", "online":
|
|
|
|
|
// due to the weird implementation of go-tdlib wrapper, it won't
|
|
|
|
|
// return the client instance until successful authorization
|
|
|
|
|
go func() {
|
|
|
|
|
err = session.Connect()
|
|
|
|
|