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 652800 - Empathy should notify when someone mention me at IRC
Empathy should notify when someone mention me at IRC
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Multi User Chat
3.0.x
Other Linux
: Normal enhancement
: ---
Assigned To: empathy-maint
: 661731 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-06-17 03:40 UTC by Jinkyu Yi
Modified: 2012-06-20 14:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Show MUC highlight notifications in Gnome Shell (1.94 KB, patch)
2012-03-28 09:12 UTC, Will Thompson
committed Details | Review

Description Jinkyu Yi 2011-06-17 03:40:59 UTC
Actually when someone mention my nick at IRC, Empathy notify it with make channel name(tab) red, but it's too weak.
I can't check when I open another window over Empathy's window or doing something at another workspace.
I wish it can notify same as when someone query me.
Comment 1 Will Thompson 2012-03-28 09:12:36 UTC
Created attachment 210763 [details] [review]
Show MUC highlight notifications in Gnome Shell

Gnome Shell filters out notifications from Empathy whose category is
something the Shell shows its own notification for. However, we
previously used the im.received category for notifications about being
highlighted in a MUC, as well as for incoming 1-1 IM notifications. The
Shell filters these out these notifications, because it shows its own
1-1 notifications, but it doesn't show MUC highlight notifications.

So this patch sets a different category on notifications from chat
rooms, which makes them show up in Gnome Shell. I'm prefixing the
category with x-empathy, following the comment above
get_category_for_event_type in empathy-notifications-approver.c.

This shouldn't confuse other notification daemons, unless they were also
filtering out im.received but also showed their own highlight
notifications (which I find unlikely).
Comment 2 Will Thompson 2012-03-28 09:14:46 UTC
It's worth adding that this is controlled by the Notifications tab in preferences. If [x] Enable bubble notifications is not ticked, and [x] Enable notifications when the chat is not focused is also not ticked, then even with this patch you won't get any highlight notifications in Gnome Shell.

(With them both ticked, you should already get highlight notifications in other environments for unfocused tabs.)
Comment 3 Will Thompson 2012-03-28 09:15:43 UTC
(Relatedly, that tab could probably stand to look a bit different if we know we're in Gnome Shell. For instance, “Disable notifications when away or busy” is meaningless in the Shell, because notifications are already hidden when we're busy.)
Comment 4 Guillaume Desmottes 2012-03-28 09:28:21 UTC
Review of attachment 210763 [details] [review]:

::: src/empathy-chat-window.c
@@ +1570,3 @@
 
+		{
+			GVariant *category = empathy_chat_is_room (chat)

You dropped the g_variant_new_string()

@@ +1572,3 @@
+			GVariant *category = empathy_chat_is_room (chat)
+				? "x-empathy.im.mentioned"
+				: "im.recieved";

"received".
Comment 5 Guillaume Desmottes 2012-03-28 11:48:52 UTC
Attachment 210763 [details] pushed as 9420ba8 - Show MUC highlight notifications in Gnome Shell
Comment 6 Guillaume Desmottes 2012-03-28 11:49:29 UTC
*** Bug 661731 has been marked as a duplicate of this bug. ***
Comment 7 Andrew Overholt 2012-06-20 14:18:54 UTC
(In reply to comment #2)
> It's worth adding that this is controlled by the Notifications tab in
> preferences. If [x] Enable bubble notifications is not ticked, and [x] Enable
> notifications when the chat is not focused is also not ticked, then even with
> this patch you won't get any highlight notifications in Gnome Shell.
> 
> (With them both ticked, you should already get highlight notifications in other
> environments for unfocused tabs.)

I'm running Fedora 17 (empathy 3.4.2) which I verified includes this patch.  However, I'm not getting notifications for IRC channel messages with my nick.  I don't see a 'Notifications' tab in Preferences, either; all I see is 'General', 'Sounds', 'Calls', 'Location', 'Spell Checking', and 'Themes'.  What am I missing?  Thanks very much, BTW, empathy is great and this is the only bug affecting me ATM!