aboutsummaryrefslogtreecommitdiff
path: root/xmpp/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r--xmpp/handlers.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 2addd7b..8778423 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -176,6 +176,15 @@ func handlePresence(s xmpp.Sender, p stanza.Presence) {
err = session.Connect()
if err != nil {
log.Error(errors.Wrap(err, "TDlib connection failure"))
+ } else {
+ for status := range session.StatusesRange() {
+ go session.ProcessStatusUpdate(
+ status.ID,
+ status.XMPP,
+ status.Description,
+ gateway.SPImmed(false),
+ )
+ }
}
}()
}