Linkify topic

This commit is contained in:
Simon Ser 2020-07-13 13:00:49 +02:00
parent 343455091c
commit 9312edc20e
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -1,4 +1,5 @@
import { html, Component } from "/lib/index.js";
import linkify from "/lib/linkify.js";
import { BufferType } from "/state.js";
const Status = {
@ -28,7 +29,7 @@ export default function BufferHeader(props) {
var serverInfo = props.buffer.serverInfo;
description = `Connected to ${serverInfo.name}`;
} else if (props.buffer.topic) {
description = props.buffer.topic;
description = linkify(props.buffer.topic);
} else if (props.buffer.who) {
var who = props.buffer.who;