messageTray: Rename bannerBodyText to body in Notification object

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3173>
This commit is contained in:
Julian Sparber
2024-02-13 19:40:07 +01:00
committed by Florian Müllner
parent e4c44fd1ed
commit 00c292733d
3 changed files with 6 additions and 6 deletions

View File

@ -767,7 +767,7 @@ export const Calendar = GObject.registerClass({
export const NotificationMessage = GObject.registerClass(
class NotificationMessage extends MessageList.Message {
_init(notification) {
super._init(notification.source, notification.title, notification.bannerBodyText);
super._init(notification.source, notification.title, notification.body);
this.setUseBodyMarkup(notification.bannerBodyMarkup);
this.notification = notification;
@ -804,7 +804,7 @@ class NotificationMessage extends MessageList.Message {
this.datetime = n.datetime;
this.setIcon(this._getIcon());
this.setTitle(n.title);
this.setBody(n.bannerBodyText);
this.setBody(n.body);
this.setUseBodyMarkup(n.bannerBodyMarkup);
}