From d2af16cd8368dc52d5d8702eb0ef2cf74a33cdb9 Mon Sep 17 00:00:00 2001
From: Kit La Touche <kit@transneptune.net>
Date: Sat, 5 Oct 2024 17:25:14 -0400
Subject: Remove delete-message buttons

They're badly styled and don't do anything yet anyway.
---
 hi-ui/src/lib/Message.svelte | 9 ---------
 1 file changed, 9 deletions(-)

(limited to 'hi-ui/src/lib/Message.svelte')

diff --git a/hi-ui/src/lib/Message.svelte b/hi-ui/src/lib/Message.svelte
index d3ecbd8..88e47cf 100644
--- a/hi-ui/src/lib/Message.svelte
+++ b/hi-ui/src/lib/Message.svelte
@@ -7,10 +7,6 @@
     export let message;
 
     let timestamp = new Date(at).toTimeString();
-
-    function handleDeleteMessage() {
-        deleteMessage(message.id);
-    }
 </script>
 
 <div class="hover:bg-zinc-300 flex flex-row">
@@ -24,11 +20,6 @@
         <!-- TODO: this is too long and looks awful. -->
         <!-- {timestamp} -->
     </div>
-    {#if sender.id === $currentUser?.id}
-        <div class="controls basis-1 hidden relative -top-3 rounded-md border-2 border-slate-600 px-1 bg-slate-300">
-            <button on:click|preventDefault={handleDeleteMessage}>&#x1F5D1;</button>
-        </div>
-    {/if}
 </div>
 
 <style>
-- 
cgit v1.2.3

