notificationDaemon: only ignore 'chat' and 'presence' notifications from Empathy (#645932)
This commit is contained in:
parent
cc9b812466
commit
9396d736f2
@ -189,9 +189,11 @@ NotificationDaemon.prototype = {
|
|||||||
actions, hints, timeout) {
|
actions, hints, timeout) {
|
||||||
let id;
|
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
|
// 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
|
// Ignore replacesId since we already sent back a
|
||||||
// NotificationClosed for that id.
|
// NotificationClosed for that id.
|
||||||
id = nextNotificationId++;
|
id = nextNotificationId++;
|
||||||
|
Loading…
Reference in New Issue
Block a user