Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits: 6e608ce7 by wurstsalat at 2021-12-03T23:28:10+01:00 ChatList: Fix unread count for single chat
- - - - -
1 changed file:
- gajim/gtk/chat_list.py
Changes:
===================================== gajim/gtk/chat_list.py ===================================== @@ -688,13 +688,14 @@ def add_unread(self, text: str) -> None: self._update_unread() self.get_parent().emit_unread_changed()
- needs_highlight = message_needs_highlight( - text, - self.contact.nickname, - self._client.get_own_jid().bare) - if needs_highlight: - self._ui.unread_label.get_style_context().remove_class( - 'unread-counter-silent') + if self.contact.is_groupchat: + needs_highlight = message_needs_highlight( + text, + self.contact.nickname, + self._client.get_own_jid().bare) + if needs_highlight: + self._ui.unread_label.get_style_context().remove_class( + 'unread-counter-silent')
def reset_unread(self) -> None: self._unread_count = 0
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/6e608ce7b8498a43b9f3956d55148a43f...