From 1d63799c9b00b45e0876eb7bbcc82e621436a787 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 17 May 2021 20:56:12 +0530 Subject: [PATCH] Added js-doc for formatFunction Signed-off-by: RMidhunSuresh --- src/platform/web/ui/session/room/timeline/TextMessageView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform/web/ui/session/room/timeline/TextMessageView.js b/src/platform/web/ui/session/room/timeline/TextMessageView.js index 4af5e5a2..dc5550ee 100644 --- a/src/platform/web/ui/session/room/timeline/TextMessageView.js +++ b/src/platform/web/ui/session/room/timeline/TextMessageView.js @@ -28,6 +28,9 @@ export class TextMessageView extends TemplateView { } } +/** + * Map from part to function that outputs DOM for the part + */ const formatFunction = { text: textPart => text(textPart.text), link: linkPart => tag.a({ href: linkPart.url, target: "_blank", rel: "noopener" }, [linkPart.text]),