From de82a88091451131ef8099aa0cccfd9c9d78ef50 Mon Sep 17 00:00:00 2001 From: dev Date: Fri, 30 Oct 2026 06:14:53 +0000 Subject: [PATCH] Update static/js/02-chat.js --- static/js/02-chat.js | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/static/js/02-chat.js b/static/js/02-chat.js index a4caa5e..a4037d9 100644 --- a/static/js/02-chat.js +++ b/static/js/02-chat.js @@ -593,15 +593,9 @@ Glow.buildAttachments = attachments => { link.download = attachment.original_name; link.textContent = `Attachment: ${attachment.original_name} (${Glow.formatBytes(attachment.size_bytes)})`; - const share = document.createElement("button"); - share.className = "small-button"; - share.type = "button"; - share.textContent = "Share file"; - share.addEventListener("click", () => { - Glow.shareAttachment(attachment); - }); - list.append(link, share); + + list.append(link); } return list; }; @@ -706,20 +700,6 @@ Glow.buildMessage = (message, grouped = false) => { bookmark.addEventListener("click", () => Glow.toggleBookmark(message)); actions.append(bookmark); - const pin = document.createElement("button"); - pin.className = "message-action"; - pin.type = "button"; - pin.textContent = message.is_pinned ? "Unpin" : "Pin"; - pin.addEventListener("click", () => Glow.togglePin(message)); - actions.append(pin); - - const share = document.createElement("button"); - share.className = "message-action"; - share.type = "button"; - share.textContent = "Share"; - share.addEventListener("click", () => Glow.shareMessage(message)); - actions.append(share); - const urls = Glow.extractUrls(message.text); if (urls.length) { const copyUrl = document.createElement("button");