[Zod] convert GPG decrypted string to unicode. Fixes #4788
This commit is contained in:
parent
a4f9764f21
commit
26d8624377
|
@ -1857,7 +1857,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
|||
def decrypt_thread(encmsg, keyID):
|
||||
decmsg = self.gpg.decrypt(encmsg, keyID)
|
||||
# \x00 chars are not allowed in C (so in GTK)
|
||||
msgtxt = decmsg.replace('\x00', '')
|
||||
msgtxt = helpers.decode_string(decmsg.replace('\x00', ''))
|
||||
encrypted = 'xep27'
|
||||
return (msgtxt, encrypted)
|
||||
gajim.thread_interface(decrypt_thread, [encmsg, keyID],
|
||||
|
|
Loading…
Reference in New Issue