fix status styling for text messages being broken

as binding was put at argument level rather than className level
This commit is contained in:
Bruno Windels 2021-06-02 15:25:20 +02:00
parent 1bb61d02de
commit 09bf0f3b4e

View file

@ -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)