Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Malte L
gajim-plugins
Commits
537baf9c
Commit
537baf9c
authored
Jan 26, 2019
by
Philipp Hörist
Browse files
[pgp] Dont use MessageNotSentEvent
parent
819145aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
pgp/pgpplugin.py
View file @
537baf9c
...
...
@@ -28,7 +28,7 @@ import nbxmpp
from
gi.repository
import
GLib
from
gajim.common
import
app
from
gajim.common.
connection_handlers_events
import
MessageNotSent
Event
from
gajim.common.
nec
import
Network
Event
from
gajim.plugins
import
GajimPlugin
from
gajim.plugins.plugins_i18n
import
_
...
...
@@ -240,9 +240,13 @@ class OldPGPPlugin(GajimPlugin):
if
error
:
log
.
error
(
'python-gnupg error: %s'
,
error
)
app
.
nec
.
push_incoming_event
(
MessageNotSentEvent
(
None
,
conn
=
conn
,
jid
=
obj
.
jid
,
message
=
obj
.
message
,
error
=
error
,
time_
=
time
.
time
(),
session
=
obj
.
session
))
NetworkEvent
(
'message-not-sent'
,
conn
=
conn
,
jid
=
obj
.
jid
,
message
=
obj
.
message
,
error
=
error
,
time_
=
time
.
time
(),
session
=
obj
.
session
))
return
self
.
cleanup_stanza
(
obj
)
...
...
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