mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Remove dead code
This commit is contained in:
parent
4df3654166
commit
687aa5a7e3
@ -27,21 +27,10 @@ export class ReplyPreviewView extends TemplateView {
|
||||
// todo: this should probably be called viewClassForTile instead
|
||||
const viewClass = viewClassForEntry(vm);
|
||||
const view = new viewClass(vm, false)
|
||||
// const rendered = this._renderContent(t, vm, view);
|
||||
const rendered = view.render(t, vm);
|
||||
return this._renderReplyHeader(t, vm, [rendered]);
|
||||
}
|
||||
|
||||
_renderContent(t, vm, view) {
|
||||
switch (vm.shape) {
|
||||
case "image":
|
||||
case "video":
|
||||
return view.renderMedia(t, vm);
|
||||
default:
|
||||
return view.renderMessageBody(t, vm);
|
||||
}
|
||||
}
|
||||
|
||||
_renderReplyHeader(t, vm, children = []) {
|
||||
return t.blockquote(
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user