chanel topic click

This commit is contained in:
MathMan05 2025-04-08 21:08:01 -05:00
parent 4a9a17814e
commit 3ee271a345
2 changed files with 8 additions and 3 deletions

View file

@ -942,6 +942,11 @@ class Channel extends SnowFlake {
channelTopic.innerHTML = "";
channelTopic.append(new MarkDown(this.topic, this).makeHTML());
channelTopic.removeAttribute("hidden");
channelTopic.onclick = () => {
const d = new Dialog(this.name);
d.options.addHTMLArea(new MarkDown(this.topic, this).makeHTML());
d.show();
};
} else channelTopic.setAttribute("hidden", "");
if (this.guild !== this.localuser.lookingguild) {
this.guild.loadGuild();