Fix encrypting with GPG

This commit is contained in:
Lance Stout 2013-05-22 11:59:17 -07:00
parent d9f595283a
commit e48b650caa

View file

@ -39,7 +39,7 @@ class Encrypted(ElementBase):
def set_encrypted(self, value):
parent = self.parent()
xmpp = parent.stream
data = xmpp['xep_0027'].encrypt(value, parent['to'].bare)
data = xmpp['xep_0027'].encrypt(value, parent['to'])
if data:
self.xml.text = data
else: