Add permalink to timestamp

This commit is contained in:
Eric Eastwood 2022-02-24 02:40:37 -06:00
parent 1032f4dbc6
commit 6005fcfc55

View file

@ -20,7 +20,9 @@ import {ReplyPreviewError, ReplyPreviewView} from "./ReplyPreviewView.js";
export class TextMessageView extends BaseMessageView { export class TextMessageView extends BaseMessageView {
renderMessageBody(t, vm) { 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({ const container = t.div({
className: { className: {
"Timeline_messageBody": true, "Timeline_messageBody": true,