diff options
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r-- | xmpp/handlers.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go index 3709443..70f985d 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -3,6 +3,8 @@ package xmpp import ( "github.com/pkg/errors" + "dev.narayana.im/narayana/telegabber/persistence" + log "github.com/sirupsen/logrus" "gosrc.io/xmpp" "gosrc.io/xmpp/stanza" @@ -88,7 +90,7 @@ func handlePresence(s xmpp.Sender, p stanza.Presence) { return } bareFromJid := fromJid.Bare() - session, ok := getTelegramInstance(bareFromJid, nil) + session, ok := getTelegramInstance(bareFromJid, &persistence.Session{}) if !ok { return } |