diff --git a/src/platform/web/ui/session/room/timeline/BaseMessageView.js b/src/platform/web/ui/session/room/timeline/BaseMessageView.js index dd7791c8..5e069dad 100644 --- a/src/platform/web/ui/session/room/timeline/BaseMessageView.js +++ b/src/platform/web/ui/session/room/timeline/BaseMessageView.js @@ -35,7 +35,7 @@ export class BaseMessageView extends TemplateView { continuation: vm => vm.isContinuation, }; return t.li({className: classes}, [ - t.if(vm => !vm.isContinuation, t => renderStaticAvatar(vm, 30, "Timeline_messageAvatar")), + t.if(vm => !vm.isContinuation, () => renderStaticAvatar(vm, 30, "Timeline_messageAvatar")), t.if(vm => !vm.isContinuation, t => t.div({className: `Timeline_messageSender usercolor${vm.avatarColorNumber}`}, vm.displayName)), this.renderMessageBody(t, vm), // should be after body as it is overlayed on top diff --git a/src/platform/web/ui/session/room/timeline/RedactedView.js b/src/platform/web/ui/session/room/timeline/RedactedView.js index e6f9b4d9..ec30c1e7 100644 --- a/src/platform/web/ui/session/room/timeline/RedactedView.js +++ b/src/platform/web/ui/session/room/timeline/RedactedView.js @@ -18,7 +18,7 @@ import {BaseMessageView} from "./BaseMessageView.js"; import {Menu} from "../../../general/Menu.js"; export class RedactedView extends BaseMessageView { - renderMessageBody(t, vm) { + renderMessageBody(t) { return t.p({className: "Timeline_messageBody statusMessage"}, vm => vm.description); }