Skip to content
Snippets Groups Projects
Commit f4e4596d authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

Chat Markers: Send marker if the chat is actively followed

parent b4c9587a
No related branches found
No related tags found
No related merge requests found
......@@ -1186,6 +1186,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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment