mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
store replyFlags on this
This commit is contained in:
parent
41fffdf155
commit
d18f4d341c
@ -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 New Issue
Block a user