mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Move links to vm
This commit is contained in:
parent
27a9f5dd02
commit
af5a008d0f
@ -34,12 +34,12 @@ export class BaseMessageTile extends SimpleTile {
|
|||||||
return this._room.mediaRepository;
|
return this._room.mediaRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
get roomId() {
|
get permaLink() {
|
||||||
return this._room.id;
|
return `https://matrix.to/#/${this._room.id}/${this._entry.id}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
get eventId() {
|
get senderProfileLink() {
|
||||||
return this._entry.id;
|
return `https://matrix.to/#/${this.sender}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
get displayName() {
|
get displayName() {
|
||||||
|
@ -34,8 +34,8 @@ export class ReplyPreviewView extends TemplateView {
|
|||||||
_renderReplyHeader(t, vm, children = []) {
|
_renderReplyHeader(t, vm, children = []) {
|
||||||
return t.blockquote(
|
return t.blockquote(
|
||||||
[
|
[
|
||||||
t.a({ className: "link", href: `https://matrix.to/#/${vm.roomId}/${vm.eventId}` }, "In reply to"),
|
t.a({ className: "link", href: vm.permaLink }, "In reply to"),
|
||||||
t.a({ className: "pill", href: `https://matrix.to/#/${vm.sender}` }, [renderStaticAvatar(vm, 12, undefined, true), vm.displayName]),
|
t.a({ className: "pill", href: vm.senderProfileLink }, [renderStaticAvatar(vm, 12, undefined, true), vm.displayName]),
|
||||||
t.br(),
|
t.br(),
|
||||||
...children
|
...children
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user