From 5b0675b711cddddb0de5669d7ab2332afa19c261 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 28 May 2021 16:24:55 +0200 Subject: [PATCH] fix lint --- src/platform/web/ui/session/room/timeline/BaseMessageView.js | 2 +- src/platform/web/ui/session/room/timeline/RedactedView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }