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.
This commit is contained in:
parent
8f275a79a9
commit
73c35f8629
@ -352,7 +352,9 @@ const ChatSource = new Lang.Class({
|
|||||||
|
|
||||||
_updateAvatarIcon: function() {
|
_updateAvatarIcon: function() {
|
||||||
this.iconUpdated();
|
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() {
|
open: function() {
|
||||||
@ -546,7 +548,9 @@ const ChatSource = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_presenceChanged: function (contact, presence, status, message) {
|
_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) {
|
_pendingRemoved: function(channel, message) {
|
||||||
|
Loading…
Reference in New Issue
Block a user