From 6a3fc713978a0c1c9290a4afd08b47886b49b635 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 13 Aug 2022 16:14:26 +0200 Subject: Update dependencies and go1.18 (#1873) * Update dependencies and go1.18 * Exclude unnecessary linters and update build to go1.18 --- vendor/go.mau.fi/whatsmeow/retry.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vendor/go.mau.fi/whatsmeow/retry.go') diff --git a/vendor/go.mau.fi/whatsmeow/retry.go b/vendor/go.mau.fi/whatsmeow/retry.go index 24be9c7a..26940b13 100644 --- a/vendor/go.mau.fi/whatsmeow/retry.go +++ b/vendor/go.mau.fi/whatsmeow/retry.go @@ -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 } -- cgit v1.2.3