don't pass a useless argument to callback. Fixes #7357
This commit is contained in:
parent
28002c209c
commit
3012297c2c
|
@ -2365,10 +2365,10 @@ class ChatControl(ChatControlBase):
|
||||||
gobject.source_remove(self.possible_inactive_timeout_id)
|
gobject.source_remove(self.possible_inactive_timeout_id)
|
||||||
self._schedule_activity_timers()
|
self._schedule_activity_timers()
|
||||||
|
|
||||||
def _on_sent(msg, contact, message, encrypted, xhtml, label, old_txt):
|
def _on_sent(msg_stanza, message, encrypted, xhtml, label, old_txt):
|
||||||
id_ = msg.getID()
|
id_ = msg_stanza.getID()
|
||||||
if contact.supports(NS_RECEIPTS) and gajim.config.get_per('accounts',
|
if self.contact.supports(NS_RECEIPTS) and gajim.config.get_per(
|
||||||
self.account, 'request_receipt'):
|
'accounts', self.account, 'request_receipt'):
|
||||||
xep0184_id = id_
|
xep0184_id = id_
|
||||||
else:
|
else:
|
||||||
xep0184_id = None
|
xep0184_id = None
|
||||||
|
@ -2390,8 +2390,8 @@ class ChatControl(ChatControlBase):
|
||||||
|
|
||||||
ChatControlBase.send_message(self, message, keyID, type_='chat',
|
ChatControlBase.send_message(self, message, keyID, type_='chat',
|
||||||
chatstate=chatstate_to_send, xhtml=xhtml, callback=_on_sent,
|
chatstate=chatstate_to_send, xhtml=xhtml, callback=_on_sent,
|
||||||
callback_args=[contact, message, encrypted, xhtml,
|
callback_args=[message, encrypted, xhtml, self.get_seclabel(),
|
||||||
self.get_seclabel(), self.last_sent_txt], process_commands=process_commands,
|
self.last_sent_txt], process_commands=process_commands,
|
||||||
attention=attention)
|
attention=attention)
|
||||||
|
|
||||||
def check_for_possible_paused_chatstate(self, arg):
|
def check_for_possible_paused_chatstate(self, arg):
|
||||||
|
|
Loading…
Reference in New Issue