fix missing argument in some events
This commit is contained in:
		
							parent
							
								
									6ad3d01fb5
								
							
						
					
					
						commit
						a5b50465b1
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue