Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
94475a7e by wurstsalat at 2021-08-21T13:53:43+02:00
BaseControl: Send chat marker if we're following the chat
- - - - -
1 changed file:
- gajim/gtk/controls/base.py
Changes:
=====================================
gajim/gtk/controls/base.py
=====================================
@@ -1121,14 +1121,13 @@ def add_message(self,
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):
- #
self._client.get_module('ChatMarkers').send_displayed_marker(
- # self.contact,
- # self.last_msg_id,
- # self._type)
+ if app.window.is_chat_active(self.account, self.contact.jid):
+ if not self._scrolled_view.get_autoscroll():
+ return
+ self._client.get_module('ChatMarkers').send_displayed_marker(
+ self.contact,
+ self.last_msg_id,
+ self._type)
def toggle_emoticons(self):
"""
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/94475a7e1a81706d58b98501165e7eeed4bfec21
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/94475a7e1a81706d58b98501165e7eeed4bfec21
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