From a5b50465b1debf9cd426826fad9f4329f6c3ac45 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Sat, 19 Nov 2011 22:19:16 +0100
Subject: [PATCH] fix missing argument in some events

---
 src/common/connection.py                   | 2 +-
 src/common/zeroconf/connection_zeroconf.py | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/common/connection.py b/src/common/connection.py
index 80e2af7bad..f776611f3f 100644
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -2348,7 +2348,7 @@ class Connection(CommonConnection, ConnectionHandlers):
             msg_iq.addChild(node = label)
         self.connection.send(msg_iq)
         gajim.nec.push_incoming_event(MessageSentEvent(None, conn=self,
-            jid=jid, message=msg, keyID=None))
+            jid=jid, message=msg, keyID=None, chatstate=None))
 
     def send_gc_subject(self, jid, subject):
         if not gajim.account_is_connected(self.name):
diff --git a/src/common/zeroconf/connection_zeroconf.py b/src/common/zeroconf/connection_zeroconf.py
index 8c96ec23b6..b34a275051 100644
--- a/src/common/zeroconf/connection_zeroconf.py
+++ b/src/common/zeroconf/connection_zeroconf.py
@@ -340,7 +340,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
 
         def on_send_ok(msg_id):
             gajim.nec.push_incoming_event(MessageSentEvent(None, conn=self,
-                jid=jid, message=msg, keyID=keyID))
+                jid=jid, message=msg, keyID=keyID, chatstate=None))
             if callback:
                 callback(msg_id, *callback_args)
 
@@ -377,7 +377,8 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
 
         def on_send_ok(msg_id):
             gajim.nec.push_incoming_event(MessageSentEvent(None, conn=self,
-                jid=obj.jid, message=obj.message, keyID=obj.keyID))
+                jid=obj.jid, message=obj.message, keyID=obj.keyID,
+                chatstate=None))
             if obj.callback:
                 obj.callback(obj.msg_id, *obj.callback_args)
 
-- 
GitLab