notificationDaemon: only ignore 'chat' and 'presence' notifications from Empathy (#645932)

This commit is contained in:
Guillaume Desmottes 2011-03-29 10:04:47 +02:00
parent cc9b812466
commit 9396d736f2

View File

@ -189,9 +189,11 @@ NotificationDaemon.prototype = {
actions, hints, timeout) {
let id;
// Filter out notifications from Empathy, since we
// Filter out chat and presence notifications from Empathy, since we
// handle that information from telepathyClient.js
if (appName == 'Empathy') {
if (appName == 'Empathy' && (hints['category'] == 'im.received' ||
hints['category'] == 'presence.online' ||
hints['category'] == 'presence.offline')) {
// Ignore replacesId since we already sent back a
// NotificationClosed for that id.
id = nextNotificationId++;