aboutsummaryrefslogtreecommitdiff
path: root/xmpp/handlers.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-12-15 22:30:54 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-12-15 22:30:54 +0300
commit3918686f211a3eac60916a81423c64240ad1988a (patch)
tree726c1d92ee1044a8bda0760a42963088b745740a /xmpp/handlers.go
parente43a0c314461b5e5b107a723e2cc3f9abe38b1f0 (diff)
Connect on probe presence (for clients that do not send online presence first)
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r--xmpp/handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 31c2b27..971ac86 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -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()