Merge pull request #639 from phiharri/confirm_delete

This commit is contained in:
Cohee
2023-07-07 09:08:51 +03:00
committed by GitHub
3 changed files with 15 additions and 3 deletions

View File

@@ -7820,9 +7820,11 @@ $(document).ready(function () {
$(document).on("click", ".mes_edit_delete", async function () {
const confirmation = await callPopup("Are you sure you want to delete this message?", 'confirm');
if (!confirmation) {
return;
if (power_user.confirm_message_delete) {
const confirmation = await callPopup("Are you sure you want to delete this message?", 'confirm');
if (!confirmation) {
return;
}
}
const mes = $(this).closest(".mes");