mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-11-26 18:06:21 -05:00
ask before deleting message
This commit is contained in:
parent
f891ff9b51
commit
30d8b11573
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue