mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Fill matrix.to links
This commit is contained in:
parent
91912bdb8d
commit
e0dc853d74
@ -33,6 +33,14 @@ export class BaseMessageTile extends SimpleTile {
|
||||
return this._room.mediaRepository;
|
||||
}
|
||||
|
||||
get roomId() {
|
||||
return this._room.id;
|
||||
}
|
||||
|
||||
get eventId() {
|
||||
return this._entry.id;
|
||||
}
|
||||
|
||||
get displayName() {
|
||||
return this._entry.displayName || this.sender;
|
||||
}
|
||||
|
@ -49,8 +49,8 @@ export class ReplyPreviewView extends TemplateView {
|
||||
_renderReplyHeader(vm, children = []) {
|
||||
return tag.blockquote(
|
||||
[
|
||||
tag.a({ className: "link", href: "#" }, "In reply to"),
|
||||
tag.a({ className: "pill", href: "#" }, [renderStaticAvatar(vm, 12, undefined, true), vm.displayName]),
|
||||
tag.a({ className: "link", href: `https://matrix.to/#/${vm.roomId}/${vm.eventId}` }, "In reply to"),
|
||||
tag.a({ className: "pill", href: `https://matrix.to/#/${vm.sender}` }, [renderStaticAvatar(vm, 12, undefined, true), vm.displayName]),
|
||||
tag.br(),
|
||||
...children
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user