diff options
author | Wim <wim@42.be> | 2022-08-13 16:14:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 16:14:26 +0200 |
commit | 6a3fc713978a0c1c9290a4afd08b47886b49b635 (patch) | |
tree | aa62cd85cf5671646c75ee38b3fc140ef7edcea8 /vendor/go.mau.fi/whatsmeow/prekeys.go | |
parent | 3c4192ebf6a32e30cdd23a9644c2ceca72a006fa (diff) | |
download | matterbridge-msglm-6a3fc713978a0c1c9290a4afd08b47886b49b635.tar.gz matterbridge-msglm-6a3fc713978a0c1c9290a4afd08b47886b49b635.tar.bz2 matterbridge-msglm-6a3fc713978a0c1c9290a4afd08b47886b49b635.zip |
Update dependencies and go1.18 (#1873)
* Update dependencies and go1.18
* Exclude unnecessary linters and update build to go1.18
Diffstat (limited to 'vendor/go.mau.fi/whatsmeow/prekeys.go')
-rw-r--r-- | vendor/go.mau.fi/whatsmeow/prekeys.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/go.mau.fi/whatsmeow/prekeys.go b/vendor/go.mau.fi/whatsmeow/prekeys.go index 850013b6..c0ece2e2 100644 --- a/vendor/go.mau.fi/whatsmeow/prekeys.go +++ b/vendor/go.mau.fi/whatsmeow/prekeys.go @@ -7,6 +7,7 @@ package whatsmeow import ( + "context" "encoding/binary" "fmt" "time" @@ -93,7 +94,7 @@ type preKeyResp struct { err error } -func (cli *Client) fetchPreKeys(users []types.JID) (map[types.JID]preKeyResp, error) { +func (cli *Client) fetchPreKeys(ctx context.Context, users []types.JID) (map[types.JID]preKeyResp, error) { requests := make([]waBinary.Node, len(users)) for i, user := range users { requests[i].Tag = "user" @@ -103,6 +104,7 @@ func (cli *Client) fetchPreKeys(users []types.JID) (map[types.JID]preKeyResp, er } } resp, err := cli.sendIQ(infoQuery{ + Context: ctx, Namespace: "encrypt", Type: "get", To: types.ServerJID, |