Use Telepathy for IM notifications

And suppress libnotify-based notifications from Empathy

https://bugzilla.gnome.org/show_bug.cgi?id=608999
This commit is contained in:
Dan Winship
2010-02-02 10:21:47 -05:00
parent 5ab852bfa3
commit 5bce103a40
6 changed files with 638 additions and 3 deletions

View File

@ -140,6 +140,17 @@ NotificationDaemon.prototype = {
let source = Main.messageTray.getSource(this._sourceId(appName));
let id = null;
// Filter out notifications from Empathy, since we
// handle that information from telepathyClient.js
if (appName == 'Empathy') {
id = nextNotificationId++;
Mainloop.idle_add(Lang.bind(this,
function () {
this._emitNotificationClosed(id, NotificationClosedReason.DISMISSED);
}));
return id;
}
// Source may be null if we have never received a notification from
// this app or if all notifications from this app have been acknowledged.
if (source == null) {