From b8c7876b7752c59191f7a036d5471908a35f6bf7 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Tue, 6 Jun 2023 10:47:41 +0200 Subject: [PATCH] Remove unused iqc. --- main.go | 4 ++-- ox.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 1542df5..8b26ef5 100644 --- a/main.go +++ b/main.go @@ -450,7 +450,7 @@ func main() { if recipient.OxKeyRing == nil { continue } - oxMessage, err := oxEncrypt(client, iqc, oxPrivKey, + oxMessage, err := oxEncrypt(client, oxPrivKey, recipient.Jid, recipient.OxKeyRing, message) if err != nil { fmt.Println("Ox: couldn't encrypt to", @@ -570,7 +570,7 @@ func main() { if recipient.OxKeyRing == nil { continue } - oxMessage, err := oxEncrypt(client, iqc, oxPrivKey, + oxMessage, err := oxEncrypt(client, oxPrivKey, recipient.Jid, recipient.OxKeyRing, message) if err != nil { fmt.Println("Ox: couldn't encrypt to", recipient.Jid) diff --git a/ox.go b/ox.go index 6e64e97..6d8a584 100644 --- a/ox.go +++ b/ox.go @@ -705,7 +705,7 @@ func oxGetPublicKeyRing(client *xmpp.Client, iqc chan xmpp.IQ, return pubKeyRing, nil } -func oxEncrypt(client *xmpp.Client, iqc chan xmpp.IQ, oxPrivKey *crypto.Key, +func oxEncrypt(client *xmpp.Client, oxPrivKey *crypto.Key, recipient string, keyRing *crypto.KeyRing, message string, ) (string, error) { if message == "" {