Commit 1dc6531c authored by Daniel Brötzmann's avatar Daniel Brötzmann

Chat Markers: Send marker if the chat is actively followed

parent 892351e8
Pipeline #6760 passed with stages
in 3 minutes and 20 seconds
......@@ -1182,6 +1182,17 @@ def add_message(self,
# Record the history of received messages
self.save_message(text, 'received')
# Send chat marker if we’re actively following the chat
if self.parent_win and self.contact.settings.get('send_marker'):
if (self.parent_win.get_active_control() == self and
self.parent_win.is_active() and
self.has_focus() and end):
con = app.connections[self.account]
con.get_module('ChatMarkers').send_displayed_marker(
self.contact,
self.last_msg_id,
self._type)
if kind in ('incoming', 'incoming_queue', 'error'):
gc_message = False
if self._type.is_groupchat:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment