forked from mystiq/hydrogen-web
store replyFlags on this
This commit is contained in:
parent
41fffdf155
commit
d18f4d341c
1 changed files with 4 additions and 2 deletions
|
@ -29,10 +29,12 @@ export class BaseMessageView extends TemplateView {
|
||||||
this._menuPopup = null;
|
this._menuPopup = null;
|
||||||
this._tagName = tagName;
|
this._tagName = tagName;
|
||||||
// TODO An enum could be nice to make code easier to read at call sites.
|
// TODO An enum could be nice to make code easier to read at call sites.
|
||||||
this._interactive = renderFlags?.interactive ?? true;
|
this._renderFlags = renderFlags;
|
||||||
this._isReplyPreview = renderFlags?.reply;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get _interactive() { return this._renderFlags?.interactive ?? true; }
|
||||||
|
get _isReplyPreview() { return this._renderFlags?.reply; }
|
||||||
|
|
||||||
render(t, vm) {
|
render(t, vm) {
|
||||||
const children = [this.renderMessageBody(t, vm)];
|
const children = [this.renderMessageBody(t, vm)];
|
||||||
if (this._interactive) {
|
if (this._interactive) {
|
||||||
|
|
Loading…
Reference in a new issue