Update dependencies and go1.18 (#1873)
* Update dependencies and go1.18 * Exclude unnecessary linters and update build to go1.18
This commit is contained in:
3
vendor/go.mau.fi/whatsmeow/retry.go
vendored
3
vendor/go.mau.fi/whatsmeow/retry.go
vendored
@@ -7,6 +7,7 @@
|
||||
package whatsmeow
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"time"
|
||||
@@ -151,7 +152,7 @@ func (cli *Client) handleRetryReceipt(receipt *events.Receipt, node *waBinary.No
|
||||
} else if reason, recreate := cli.shouldRecreateSession(retryCount, receipt.Sender); recreate {
|
||||
cli.Log.Debugf("Fetching prekeys for %s for handling retry receipt with no prekey bundle because %s", receipt.Sender, reason)
|
||||
var keys map[types.JID]preKeyResp
|
||||
keys, err = cli.fetchPreKeys([]types.JID{receipt.Sender})
|
||||
keys, err = cli.fetchPreKeys(context.TODO(), []types.JID{receipt.Sender})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user