diff --git a/src/common/connection.py b/src/common/connection.py index 897493918..19eae8b0e 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -688,7 +688,7 @@ class Connection: msgenc = '' if keyID and USE_GPG: #encrypt - msgenc = self.gpg.encrypt(msg, keyID) + msgenc = self.gpg.encrypt(msg, [keyID]) if msgenc: msgtxt = _('[this message is encrypted]') msg_iq = common.xmpp.Message(to = jid, body = msgtxt, typ = 'chat') if msgenc: