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
This commit is contained in:
parent
4029202635
commit
f4a000cb59
@ -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);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user