recipients must be a list
This commit is contained in:
parent
1d628069b1
commit
4097578005
|
@ -688,7 +688,7 @@ class Connection:
|
||||||
msgenc = ''
|
msgenc = ''
|
||||||
if keyID and USE_GPG:
|
if keyID and USE_GPG:
|
||||||
#encrypt
|
#encrypt
|
||||||
msgenc = self.gpg.encrypt(msg, keyID)
|
msgenc = self.gpg.encrypt(msg, [keyID])
|
||||||
if msgenc: msgtxt = _('[this message is encrypted]')
|
if msgenc: msgtxt = _('[this message is encrypted]')
|
||||||
msg_iq = common.xmpp.Message(to = jid, body = msgtxt, typ = 'chat')
|
msg_iq = common.xmpp.Message(to = jid, body = msgtxt, typ = 'chat')
|
||||||
if msgenc:
|
if msgenc:
|
||||||
|
|
Loading…
Reference in New Issue