Add permalink to timestamp

This commit is contained in:
Eric Eastwood 2022-02-24 02:40:37 -06:00
parent 1032f4dbc6
commit 6005fcfc55
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ import {ReplyPreviewError, ReplyPreviewView} from "./ReplyPreviewView.js";
export class TextMessageView extends BaseMessageView {
renderMessageBody(t, vm) {
const time = t.time({className: {hidden: !vm.date}}, vm.date + " " + vm.time);
const time = t.a({ href: vm.permaLink, target: "_blank" }, [
t.time({className: {hidden: !vm.date}}, vm.date + " " + vm.time)
]);
const container = t.div({
className: {
"Timeline_messageBody": true,