[gnome-shell/wip/fmuellner/chat-notifications: 1/5] telepathyClient: Don't remove body on updates
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/chat-notifications: 1/5] telepathyClient: Don't remove body on updates
- Date: Tue, 17 Mar 2015 05:28:19 +0000 (UTC)
commit 73c35f8629384aac8422055ef6df1d88ee59599d
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Mar 17 02:36:05 2015 +0100
telepathyClient: Don't remove body on updates
Passing null as body always meant clearing the existing one. While this
mattered less with the old message tray which used the expanded actor,
the new message list in the calendar uses the unexpanded body. We clearly
don't want that to disappear on icon changes, so pass the existing one.
js/ui/components/telepathyClient.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js
index d552488..ddcddfe 100644
--- a/js/ui/components/telepathyClient.js
+++ b/js/ui/components/telepathyClient.js
@@ -352,7 +352,9 @@ const ChatSource = new Lang.Class({
_updateAvatarIcon: function() {
this.iconUpdated();
- this._notification.update(this._notification.title, null, { customContent: true });
+ this._notification.update(this._notification.title,
+ this._notification.bannerBodyText,
+ { gicon: this.getIcon(), customContent: true });
},
open: function() {
@@ -546,7 +548,9 @@ const ChatSource = new Lang.Class({
},
_presenceChanged: function (contact, presence, status, message) {
- this._notification.update(this._notification.title, null, { customContent: true, secondaryGIcon:
this.getSecondaryIcon() });
+ this._notification.update(this._notification.title,
+ this._notification.bannerBodyText,
+ { customContent: true, secondaryGIcon: this.getSecondaryIcon() });
},
_pendingRemoved: function(channel, message) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]