Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
gajim
gajim-plugins
Commits
fc5a1035
Commit
fc5a1035
authored
Jun 10, 2017
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[pgp] Modify event obj only if we encrypt
parent
f41a747e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
pgp/pgpplugin.py
pgp/pgpplugin.py
+6
-4
No files found.
pgp/pgpplugin.py
View file @
fc5a1035
...
@@ -229,6 +229,7 @@ class OldPGPPlugin(GajimPlugin):
...
@@ -229,6 +229,7 @@ class OldPGPPlugin(GajimPlugin):
None
,
conn
=
conn
,
jid
=
obj
.
jid
,
message
=
obj
.
message
,
None
,
conn
=
conn
,
jid
=
obj
.
jid
,
message
=
obj
.
message
,
error
=
error
,
time_
=
time
.
time
(),
session
=
obj
.
session
))
error
=
error
,
time_
=
time
.
time
(),
session
=
obj
.
session
))
return
return
self
.
cleanup_stanza
(
obj
)
self
.
cleanup_stanza
(
obj
)
if
msgenc
:
if
msgenc
:
...
@@ -244,6 +245,7 @@ class OldPGPPlugin(GajimPlugin):
...
@@ -244,6 +245,7 @@ class OldPGPPlugin(GajimPlugin):
obj
.
xhtml
=
None
obj
.
xhtml
=
None
obj
.
encrypted
=
self
.
encryption_name
obj
.
encrypted
=
self
.
encryption_name
print_msg_to_log
(
obj
.
msg_iq
)
print_msg_to_log
(
obj
.
msg_iq
)
callback
(
obj
)
callback
(
obj
)
def
encrypt_file
(
self
,
file
,
account
,
callback
):
def
encrypt_file
(
self
,
file
,
account
,
callback
):
...
...
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