From e1db7e368f4919d322f0d4f6a11e1d7780e2704f Mon Sep 17 00:00:00 2001 From: Aleksandr Mezin Date: Fri, 8 Mar 2024 18:30:00 +0200 Subject: [PATCH] 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: --- js/ui/messageList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/messageList.js b/js/ui/messageList.js index ad93594ef..acc503319 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -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'); }