Only fetch ox keys if --ox is used.

This commit is contained in:
Martin Dosch 2022-04-18 14:59:29 +02:00
parent edc35dd8df
commit b5557ab251

View File

@ -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)
} }