parent
1b2ab928f0
commit
8ea39cff75
|
@ -2032,11 +2032,19 @@ class GroupchatControl(ChatControlBase):
|
||||||
correct_id = self.last_sent_msg
|
correct_id = self.last_sent_msg
|
||||||
else:
|
else:
|
||||||
correct_id = None
|
correct_id = None
|
||||||
|
|
||||||
|
# Set chatstate
|
||||||
|
chatstate = None
|
||||||
|
if app.config.get('outgoing_chat_state_notifications') != 'disabled':
|
||||||
|
chatstate = 'active'
|
||||||
|
self.reset_kbd_mouse_timeout_vars()
|
||||||
|
self.contact.our_chatstate = chatstate
|
||||||
|
|
||||||
# Send the message
|
# Send the message
|
||||||
app.nec.push_outgoing_event(GcMessageOutgoingEvent(None,
|
app.nec.push_outgoing_event(GcMessageOutgoingEvent(
|
||||||
account=self.account, jid=self.room_jid, message=message,
|
None, account=self.account, jid=self.room_jid, message=message,
|
||||||
xhtml=xhtml, label=label, correct_id=correct_id,
|
xhtml=xhtml, label=label, chatstate=chatstate,
|
||||||
automatic_message=False))
|
correct_id=correct_id, automatic_message=False))
|
||||||
self.msg_textview.get_buffer().set_text('')
|
self.msg_textview.get_buffer().set_text('')
|
||||||
self.msg_textview.grab_focus()
|
self.msg_textview.grab_focus()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue