Daniel Brötzmann pushed to branch mainwindow at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/gtk/chat_list.py
    ... ... @@ -688,13 +688,14 @@ def add_unread(self, text: str) -> None:
    688 688
             self._update_unread()
    
    689 689
             self.get_parent().emit_unread_changed()
    
    690 690
     
    
    691
    -        needs_highlight = message_needs_highlight(
    
    692
    -            text,
    
    693
    -            self.contact.nickname,
    
    694
    -            self._client.get_own_jid().bare)
    
    695
    -        if needs_highlight:
    
    696
    -            self._ui.unread_label.get_style_context().remove_class(
    
    697
    -                'unread-counter-silent')
    
    691
    +        if self.contact.is_groupchat:
    
    692
    +            needs_highlight = message_needs_highlight(
    
    693
    +                text,
    
    694
    +                self.contact.nickname,
    
    695
    +                self._client.get_own_jid().bare)
    
    696
    +            if needs_highlight:
    
    697
    +                self._ui.unread_label.get_style_context().remove_class(
    
    698
    +                    'unread-counter-silent')
    
    698 699
     
    
    699 700
         def reset_unread(self) -> None:
    
    700 701
             self._unread_count = 0