messageList: Fix TypeError in Message.useBodyMarkup setter

Setting `useBodyMarkup` to `true` fails with:

    JS ERROR: TypeError: this.setBody is not a function
    set useBodyMarkup@resource:///org/gnome/shell/ui/messageList.js:585:14

Fixes: f0e863f529 "messageList: Use GObject properties for Message"
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3232>
This commit is contained in:
Aleksandr Mezin 2024-03-08 18:30:00 +02:00 committed by Marge Bot
parent 77af504930
commit e1db7e368f

View File

@ -582,7 +582,7 @@ export const Message = GObject.registerClass({
if (this._useBodyMarkup === enable)
return;
this._useBodyMarkup = enable;
this.setBody(this._bodyText);
this.body = this._bodyText;
this.notify('use-body-markup');
}