Skip to content
Snippets Groups Projects
Commit 6e608ce7 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

ChatList: Fix unread count for single chat

parent c998fadb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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