Commit 537baf9c authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[pgp] Dont use MessageNotSentEvent

parent 819145aa
...@@ -28,7 +28,7 @@ import nbxmpp ...@@ -28,7 +28,7 @@ import nbxmpp
from gi.repository import GLib from gi.repository import GLib
from gajim.common import app from gajim.common import app
from gajim.common.connection_handlers_events import MessageNotSentEvent from gajim.common.nec import NetworkEvent
from gajim.plugins import GajimPlugin from gajim.plugins import GajimPlugin
from gajim.plugins.plugins_i18n import _ from gajim.plugins.plugins_i18n import _
...@@ -240,9 +240,13 @@ class OldPGPPlugin(GajimPlugin): ...@@ -240,9 +240,13 @@ class OldPGPPlugin(GajimPlugin):
if error: if error:
log.error('python-gnupg error: %s', error) log.error('python-gnupg error: %s', error)
app.nec.push_incoming_event( app.nec.push_incoming_event(
MessageNotSentEvent( NetworkEvent('message-not-sent',
None, conn=conn, jid=obj.jid, message=obj.message, conn=conn,
error=error, time_=time.time(), session=obj.session)) jid=obj.jid,
message=obj.message,
error=error,
time_=time.time(),
session=obj.session))
return return
self.cleanup_stanza(obj) self.cleanup_stanza(obj)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment