After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 669823 - Don't unhighlight chat tabs when more messages are received
Don't unhighlight chat tabs when more messages are received
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Chat
unspecified
Other All
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2012-02-10 17:52 UTC by Will Thompson
Modified: 2012-02-10 18:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't unhighlight chat tabs when more messages are received (5.39 KB, patch)
2012-02-10 17:52 UTC, Will Thompson
committed Details | Review

Description Will Thompson 2012-02-10 17:52:53 UTC
Travis noticed that highlighted tabs get cleared by subsequent messages, so I fixed it.
Comment 1 Will Thompson 2012-02-10 17:52:54 UTC
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.
Comment 2 Travis Reitter 2012-02-10 18:16:29 UTC
Review of attachment 207284 [details] [review]:

Without having tested this myself, it looks good.
Comment 3 Will Thompson 2012-02-10 18:33:04 UTC
Attachment 207284 [details] pushed as a8e8bd5 - Don't unhighlight chat tabs when more messages are received
Comment 4 Will Thompson 2012-02-10 18:33:48 UTC
(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!