From 30d8b115739a85efbdf56b7091015d5ab378a852 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 5 May 2024 02:44:07 +1200 Subject: [PATCH] ask before deleting message --- public/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/index.html b/public/index.html index 4feeb9e..c4ab117 100644 --- a/public/index.html +++ b/public/index.html @@ -815,6 +815,11 @@ async deleteChatItem(chatItem) { try { + // ask user to confirm deleting message + if(!confirm("Are you sure you want to delete this message? This can not be undone!")){ + return; + } + // make sure it's an lxmf message if(chatItem.type !== "lxmf_message"){ return;