|
|
@ -188,7 +188,7 @@ func handlePresence(s xmpp.Sender, p stanza.Presence) {
|
|
|
|
case "unavailable", "error":
|
|
|
|
case "unavailable", "error":
|
|
|
|
session.Disconnect(resource, false)
|
|
|
|
session.Disconnect(resource, false)
|
|
|
|
// go online
|
|
|
|
// go online
|
|
|
|
case "probe", "", "online":
|
|
|
|
case "probe", "", "online", "subscribe":
|
|
|
|
// due to the weird implementation of go-tdlib wrapper, it won't
|
|
|
|
// due to the weird implementation of go-tdlib wrapper, it won't
|
|
|
|
// return the client instance until successful authorization
|
|
|
|
// return the client instance until successful authorization
|
|
|
|
go func() {
|
|
|
|
go func() {
|
|
|
|