GNOME Bugzilla – Bug 669823
Don't unhighlight chat tabs when more messages are received
Last modified: 2012-02-10 18:33:48 UTC
Travis noticed that highlighted tabs get cleared by subsequent messages, so I fixed it.
Created attachment 207284 [details] [review] Don't unhighlight chat tabs when more messages are received Travis noticed that if you receive a message in which you are not mentioned after one in which you are, the highlight on the chat tab is cleared. This turned out to be because the text of the chat tab label was set in two different places in empathy-chat-window.c: one which takes should_highlight into account, and one which does not. This patch makes EmpathyChat keep track of whether it should be highlighted (reusing empathy_chat_messages_read(), which is called to acknowledge messages as having been seen by the user, to clear the flag), and then uses that from one of the label-updating code paths and deletes the other.
Review of attachment 207284 [details] [review]: Without having tested this myself, it looks good.
Attachment 207284 [details] pushed as a8e8bd5 - Don't unhighlight chat tabs when more messages are received
(In reply to comment #2) > Review of attachment 207284 [details] [review]: > > Without having tested this myself, it looks good. I tested it myself and it works, so I've committed it. Thanks!