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 659272 - reset missed counter when viewing messages
reset missed counter when viewing messages
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 657113 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-09-16 17:43 UTC by William Jon McCann
Modified: 2015-02-23 21:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (16.96 KB, image/png)
2011-09-16 17:43 UTC, William Jon McCann
  Details
telepathyClient: reset badge as soon as the summary notification is shown (2.43 KB, patch)
2011-12-08 23:51 UTC, Marina Zhurakhinskaya
committed Details | Review
messageTray: display badge only for unseen notifications (2.30 KB, patch)
2011-12-09 00:14 UTC, Marina Zhurakhinskaya
rejected Details | Review

Description William Jon McCann 2011-09-16 17:43:16 UTC
Created attachment 196756 [details]
screenshot

When I'm in a chat talking to someone it is really odd to have the missed message counter incrementing. It seems to clear when I leave the chat but it should probably clear when I enter the chat.
Comment 1 Marina Zhurakhinskaya 2011-09-27 00:18:41 UTC
I agree. Similarly, for any other notifications, we should reset the counter as soon as I open the summary notification. E.g. if I have missed IRC messages.

I'm going to assign it to some OPW applicants, so please consider this bug claimed.
Comment 2 Marina Zhurakhinskaya 2011-10-13 20:28:35 UTC
*** Bug 657113 has been marked as a duplicate of this bug. ***
Comment 3 Marina Zhurakhinskaya 2011-12-08 23:51:43 UTC
Created attachment 203127 [details] [review]
telepathyClient: reset badge as soon as the summary notification is shown

That way the user will not see an outdated pending messages count, while
they are viewing them or chatting with the sender.

https://bugzilla.gnome.org/show_bug.cgi?id=664138
Comment 4 Marina Zhurakhinskaya 2011-12-09 00:14:59 UTC
Created attachment 203128 [details] [review]
messageTray: display badge only for unseen notifications

That way the user will know if there are new notifications
related to the source.

I am not entirely sure about this patch. Previously, badge counters for
non-chat sources were not reset and only indicated the number of notifications
associated with the source, if it is greater than one. If we reset the counter
upon the notification being seen, we now indicate to the user if the source
has unseen notifications, but it's problematic that we don't indicate that in
the case there is one unseen notification. Some options are
1) add isStacked flag to IRC, e-mail, and other applications for
which unseen notification count makes most sense, and show a badge in case the
count is 1 for them too
2) show a badge with count 1 for any unseen non-resident notification.
(Showing a badge with count 1 for resident notifications, like Rhythmbox, really
doesn't make sense.) That way a badge will uniformly indicate that a source has
new notifications. However, this can be annoying as it will create a task for
the user to unset the badges.
3) leave things as is for non-chat notifications
Comment 5 Jasper St. Pierre (not reading bugmail) 2011-12-09 00:47:16 UTC
Review of attachment 203127 [details] [review]:

Extraneous URL in the commit message, extraneous comma in the commit message.
Comment 6 Jasper St. Pierre (not reading bugmail) 2011-12-09 00:47:55 UTC
Review of attachment 203128 [details] [review]:

Seems fine.
Comment 7 Marina Zhurakhinskaya 2011-12-09 16:51:55 UTC
Comment on attachment 203127 [details] [review]
telepathyClient: reset badge as soon as the summary notification is shown

Leaving the other patch uncommitted for now, waiting for a design review.
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-03-15 20:51:54 UTC
Review of attachment 203128 [details] [review]:

This needs a refactor if we're going forward with landing bug #643014
Comment 9 Jasper St. Pierre (not reading bugmail) 2012-03-15 20:52:20 UTC
Review of attachment 203128 [details] [review]:

(dummy comment to shut splinter up)
Comment 10 Jonny Lamb 2012-05-31 10:08:08 UTC
I'm a little late to the party here but I only just upgraded to gnome-shell 3.4 (go Debian).

As you can see in bug #644297 I promoted this behaviour of only acking the messages once the messaging tray has been dismissed (and still only if the channel isn't delegated). I agree with this bug that it makes it look kind of ugly but this behaviour is incredibly useful. For example:

Someone writes messages to me:
(this screenshot merely shows what has been sent)

    http://people.collabora.co.uk/~jonny/shellacking1.png

The messages are displayed in the shell as usual:

    http://people.collabora.co.uk/~jonny/shellacking2.png

If I now delegate the channel to empathy by clicking on it, now this window appears:

    http://people.collabora.co.uk/~jonny/shellacking3.png

There are two problems here:

 1. because the messages have already been acked they don't appear as unread --
    I haven't actually included this in the screenshot but in this theme a blue
    marker appears at the RHS of the message to show it is unread; this is
    incredibly useful, it's like the red line in xchat-gnome to show where
    you read up to before.

 2. again, because the messages have already been acked they're considered to be
    old chat, so they are not only greyed out (in this theme) but only five
    messages are shown. You can see I sent six messages originally.

This is possibly a poor example as all the messages are single lined and are simple, so in a way there's no need to delegate it to Empathy. However, long messages which span multiple lines can be hard to read in the messaging tray. Perhaps you're sending your friends more hilarious GList anti-patterns you just found and you paste the code; reading that in Empathy is much more forgiving.

Hopefully this use case makes some sense.

I do agree that it looks fugly if we ack after the fact though. Can we just give the appearance to have done that though?

(Sorry for the essay-long comment.)
Comment 11 Allan Day 2015-02-23 21:44:28 UTC
We don't have counters with the new notifications design [1], so I think this is obsolete. Please reopen if I'm wrong.

[1] https://wiki.gnome.org/Design/OS/Notifications/