mirror of
https://salsa.debian.org/mdosch/go-sendxmpp
synced 2024-11-15 00:15:10 +00:00
Only fetch ox keys if --ox
is used.
This commit is contained in:
parent
edc35dd8df
commit
b5557ab251
8
main.go
8
main.go
@ -261,9 +261,11 @@ func main() {
|
|||||||
for _, r := range getopt.Args() {
|
for _, r := range getopt.Args() {
|
||||||
var re recipientsType
|
var re recipientsType
|
||||||
re.Jid = r
|
re.Jid = r
|
||||||
re.OxKey, err = oxGetPublicKey(client, r)
|
if *flagOx {
|
||||||
if err != nil {
|
re.OxKey, err = oxGetPublicKey(client, r)
|
||||||
fmt.Println("Couldn't receive key for:", r)
|
if err != nil {
|
||||||
|
fmt.Println("Couldn't receive key for:", r)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
recipients = append(recipients, re)
|
recipients = append(recipients, re)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user