From 09bf0f3b4ee68a44c2c8fd3fca1a38f1b7a7e773 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 2 Jun 2021 15:25:20 +0200 Subject: [PATCH] fix status styling for text messages being broken as binding was put at argument level rather than className level --- .../web/ui/session/room/timeline/TextMessageView.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/platform/web/ui/session/room/timeline/TextMessageView.js b/src/platform/web/ui/session/room/timeline/TextMessageView.js index d0aae8f3..88d97b3f 100644 --- a/src/platform/web/ui/session/room/timeline/TextMessageView.js +++ b/src/platform/web/ui/session/room/timeline/TextMessageView.js @@ -21,8 +21,10 @@ import {BaseMessageView} from "./BaseMessageView.js"; export class TextMessageView extends BaseMessageView { renderMessageBody(t, vm) { return t.p({ - className: "Timeline_messageBody", - statusMessage: vm => vm.shape === "message-status" + className: { + "Timeline_messageBody": true, + statusMessage: vm => vm.shape === "message-status", + }, }, [ t.mapView(vm => vm.body, body => new BodyView(body)), t.time({className: {hidden: !vm.date}}, vm.date + " " + vm.time)