Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kamay
gajim-plugins
Commits
0e29da0f
Commit
0e29da0f
authored
Apr 24, 2021
by
Kamay
Browse files
[pgp] Fixed file sharing feature.
The encrypt_file method from PGP module needed a stream instead of bytes.
parent
d349e5bf
Pipeline
#7662
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pgp/modules/pgp_legacy.py
View file @
0e29da0f
...
...
@@ -281,8 +281,11 @@ class PGPLegacy(BaseModule):
self
.
_log
.
warning
(
error
)
return
encrypted
=
self
.
_pgp
.
encrypt_file
(
file
.
get_data
(),
stream
=
open
(
file
.
path
,
"rb"
)
encrypted
=
self
.
_pgp
.
encrypt_file
(
stream
,
[
key_id
,
own_key_id
])
stream
.
close
()
if
not
encrypted
:
GLib
.
idle_add
(
self
.
_on_file_encryption_error
,
encrypted
.
status
)
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment