From 3418e8c9afbdf3e94ab26a20d8f12c042ae29fc4 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 30 May 2019 12:20:56 +0200 Subject: Use upstream whatsapp again (#809) --- bridge/whatsapp/whatsapp.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bridge/whatsapp/whatsapp.go') diff --git a/bridge/whatsapp/whatsapp.go b/bridge/whatsapp/whatsapp.go index 286d463c..c66e13ac 100644 --- a/bridge/whatsapp/whatsapp.go +++ b/bridge/whatsapp/whatsapp.go @@ -11,10 +11,9 @@ import ( "github.com/42wim/matterbridge/bridge" "github.com/42wim/matterbridge/bridge/config" + "github.com/Rhymen/go-whatsapp" - "github.com/matterbridge/go-whatsapp" - - whatsappExt "github.com/matterbridge/mautrix-whatsapp/whatsapp-ext" + whatsappExt "maunium.net/go/mautrix-whatsapp/whatsapp-ext" ) const ( @@ -89,7 +88,7 @@ func (b *Bwhatsapp) Connect() error { b.Log.Debugln("Restoring WhatsApp session..") // https://github.com/Rhymen/go-whatsapp#restore - session, err = b.conn.RestoreSession(session) + session, err = b.conn.RestoreWithSession(session) if err != nil { // TODO return or continue to normal login? // restore session connection timed out (I couldn't get over it without logging in again) -- cgit v1.2.3