fix missing argument in some events

This commit is contained in:
Yann Leboulanger 2011-11-19 22:19:16 +01:00
parent 6ad3d01fb5
commit a5b50465b1
2 changed files with 4 additions and 3 deletions

View File

@ -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):

View File

@ -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)