[gnome-shell] telepathyClient: Re-open existing chat sources on Shell restart
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] telepathyClient: Re-open existing chat sources on Shell restart
- Date: Mon, 14 Mar 2011 22:52:51 +0000 (UTC)
commit f4a000cb59875065248f435b0fd712056b3f6db9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Feb 28 13:14:07 2011 -0500
telepathyClient: Re-open existing chat sources on Shell restart
This allows users to continue a chat they were having after
the shell is restarted.
https://bugzilla.gnome.org/show_bug.cgi?id=642793
js/ui/telepathyClient.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index 7dd972e..7bfc7ac 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -143,6 +143,10 @@ Source.prototype = {
this._notifyAvatarId = this._contact.connect('notify::avatar-file', Lang.bind(this, this._updateAvatarIcon));
this._presenceChangedId = this._contact.connect('presence-changed', Lang.bind(this, this._presenceChanged));
+ // Add ourselves as a source.
+ Main.messageTray.add(this);
+ this.pushNotification(this._notification);
+
this._displayPendingMessages();
},
@@ -216,9 +220,6 @@ Source.prototype = {
},
notify: function() {
- if (!Main.messageTray.contains(this))
- Main.messageTray.add(this);
-
MessageTray.Source.prototype.notify.call(this, this._notification);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]