diff --git a/go.mod b/go.mod index cfa7789..3044803 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/prometheus/client_golang v1.12.2-0.20220514081015-5d584e2717ef github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e github.com/tidwall/gjson v1.14.1 - go.mau.fi/whatsmeow v0.0.0-20220526084057-133d825afbab + go.mau.fi/whatsmeow v0.0.0-20220531132308-f99c723af484 golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9 golang.org/x/net v0.0.0-20220513224357-95641704303c google.golang.org/protobuf v1.28.0 diff --git a/go.sum b/go.sum index 7531b36..ac5083c 100644 --- a/go.sum +++ b/go.sum @@ -62,8 +62,8 @@ github.com/yuin/goldmark v1.4.12 h1:6hffw6vALvEDqJ19dOJvJKOoAOKe4NDaTqvd2sktGN0= github.com/yuin/goldmark v1.4.12/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.mau.fi/libsignal v0.0.0-20220425070825-c40c839ee6a0 h1:3IQF2bgAyibdo77hTejwuJe4jlypj9QaE4xCQuxrThM= go.mau.fi/libsignal v0.0.0-20220425070825-c40c839ee6a0/go.mod h1:kBOXTvYyDG/q1Ihgvd4J6WenGPh7wtEGvPKF6vmf5ak= -go.mau.fi/whatsmeow v0.0.0-20220526084057-133d825afbab h1:uwRrj3gsr8ycTsi3E6OVy5CnzZIeGRFluvFI/jnOOFQ= -go.mau.fi/whatsmeow v0.0.0-20220526084057-133d825afbab/go.mod h1:iUBgOLNaqShLrR17u0kIiRptIGFH+nbT1tRhaWBEX/c= +go.mau.fi/whatsmeow v0.0.0-20220531132308-f99c723af484 h1:Wj3f0tvP4O7xbfpMhHadPvZlurB3uu4Z6PZaPbX/kwQ= +go.mau.fi/whatsmeow v0.0.0-20220531132308-f99c723af484/go.mod h1:iUBgOLNaqShLrR17u0kIiRptIGFH+nbT1tRhaWBEX/c= golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220513210258-46612604a0f9 h1:NUzdAbFtCJSXU20AOXgeqaUwg8Ypg4MPYmL+d+rsB5c= golang.org/x/crypto v0.0.0-20220513210258-46612604a0f9/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= diff --git a/main.go b/main.go index 7999bb2..6b1bcc2 100644 --- a/main.go +++ b/main.go @@ -93,7 +93,7 @@ func (br *WABridge) Init() { } br.DB = database.New(br.Bridge.DB) - br.WAContainer = sqlstore.NewWithDB(br.DB.DB, br.DB.Dialect.String(), nil) + br.WAContainer = sqlstore.NewWithDB(br.DB.DB, br.DB.Dialect.String(), &waLogger{br.DB.Log.Sub("WhatsApp")}) br.WAContainer.DatabaseErrorHandler = br.DB.HandleSignalStoreError ss := br.Config.Bridge.Provisioning.SharedSecret