Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8ea39cff by Philipp Hörist at 2017-12-27T19:09:12+01:00
Add 'active' chatstate to groupchat messages
Fixes #8801
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -2032,11 +2032,19 @@ class GroupchatControl(ChatControlBase):
correct_id = self.last_sent_msg
else:
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
- app.nec.push_outgoing_event(GcMessageOutgoingEvent(None,
- account=self.account, jid=self.room_jid, message=message,
- xhtml=xhtml, label=label, correct_id=correct_id,
- automatic_message=False))
+ app.nec.push_outgoing_event(GcMessageOutgoingEvent(
+ None, account=self.account, jid=self.room_jid, message=message,
+ xhtml=xhtml, label=label, chatstate=chatstate,
+ correct_id=correct_id, automatic_message=False))
self.msg_textview.get_buffer().set_text('')
self.msg_textview.grab_focus()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/8ea39cff754c87ec6a6e51e7c1e8f1e26027764f
---
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/8ea39cff754c87ec6a6e51e7c1e8f1e26027764f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits