fix lint
This commit is contained in:
parent
95a680eb83
commit
5b0675b711
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ export class BaseMessageView extends TemplateView {
|
||||||
continuation: vm => vm.isContinuation,
|
continuation: vm => vm.isContinuation,
|
||||||
};
|
};
|
||||||
return t.li({className: classes}, [
|
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)),
|
t.if(vm => !vm.isContinuation, t => t.div({className: `Timeline_messageSender usercolor${vm.avatarColorNumber}`}, vm.displayName)),
|
||||||
this.renderMessageBody(t, vm),
|
this.renderMessageBody(t, vm),
|
||||||
// should be after body as it is overlayed on top
|
// should be after body as it is overlayed on top
|
||||||
|
|
|
@ -18,7 +18,7 @@ import {BaseMessageView} from "./BaseMessageView.js";
|
||||||
import {Menu} from "../../../general/Menu.js";
|
import {Menu} from "../../../general/Menu.js";
|
||||||
|
|
||||||
export class RedactedView extends BaseMessageView {
|
export class RedactedView extends BaseMessageView {
|
||||||
renderMessageBody(t, vm) {
|
renderMessageBody(t) {
|
||||||
return t.p({className: "Timeline_messageBody statusMessage"}, vm => vm.description);
|
return t.p({className: "Timeline_messageBody statusMessage"}, vm => vm.description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue