Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pgp
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-01-26 22:15:00 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-01-26 22:16:37 +0300
commit537baf9c24e0e6756b361e82445b6680d37009ed (patch)
tree04b5611baac006d76846454cac76c131956373a5 /pgp
parent819145aac08157f20f62cd42ef095b9c3526e143 (diff)
[pgp] Dont use MessageNotSentEvent
Diffstat (limited to 'pgp')
-rw-r--r--pgp/pgpplugin.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/pgp/pgpplugin.py b/pgp/pgpplugin.py
index 19d50bc..b4182de 100644
--- a/pgp/pgpplugin.py
+++ b/pgp/pgpplugin.py
@@ -28,7 +28,7 @@ import nbxmpp
from gi.repository import GLib
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.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)