Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Hide 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):
None
,
conn
=
conn
,
jid
=
obj
.
jid
,
message
=
obj
.
message
,
error
=
error
,
time_
=
time
.
time
(),
session
=
obj
.
session
))
return
self
.
cleanup_stanza
(
obj
)
if
msgenc
:
...
...
@@ -240,10 +241,11 @@ class OldPGPPlugin(GajimPlugin):
'namespace'
:
nbxmpp
.
NS_ENCRYPTED
})
obj
.
msg_iq
.
addChild
(
node
=
eme_node
)
# Set xhtml to None so it doesnt get logged
obj
.
xhtml
=
None
obj
.
encrypted
=
self
.
encryption_name
print_msg_to_log
(
obj
.
msg_iq
)
# Set xhtml to None so it doesnt get logged
obj
.
xhtml
=
None
obj
.
encrypted
=
self
.
encryption_name
print_msg_to_log
(
obj
.
msg_iq
)
callback
(
obj
)
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