Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
c740a39a by wurstsalat at 2021-07-04T22:06:08+02:00
ChatControl: Scroll to end when sending a message
- - - - -
1 changed file:
- gajim/gtk/controls/base.py
Changes:
=====================================
gajim/gtk/controls/base.py
=====================================
@@ -1102,8 +1102,11 @@ def add_message(self,
log_line_id=msg_log_id,
additional_data=additional_data)
- if not self._scrolled_view.get_autoscroll() and kind != 'outgoing':
- self._jump_to_end_button.add_unread_count()
+ if not self._scrolled_view.get_autoscroll():
+ if kind == 'outgoing':
+ self.scroll_to_end()
+ else:
+ self._jump_to_end_button.add_unread_count()
else:
self._jump_to_end_button.add_unread_count()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c740a39a6bfb5ce89eb951f16c78d3307db0846c
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c740a39a6bfb5ce89eb951f16c78d3307db0846c
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