From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: alina sireneva <alina@tei.su>
Date: Fri, 10 Apr 2026 04:50:52 +0300
Subject: configurable defaults for "delete for both/all" checkboxes

---
 .../java/org/telegram/ui/Components/AlertsCreator.java   | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java
index 0000000..0000000 100644
--- a/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java
+++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java
@@ -2763,6 +2763,9 @@ public class AlertsCreator {
             if (forceDeleteForAll) {
                 cell[0].setChecked(deleteForAll[0] = true, false);
                 updateText.run();
+            } else if (deleteChatForAll ? desu.inugram.InuConfig.DELETE_FOR_BOTH_GROUPS.getValue() : desu.inugram.InuConfig.DELETE_FOR_BOTH_DMS.getValue()) {
+                cell[0].setChecked(deleteForAll[0] = true, false);
+                updateText.run();
             }
         }
 
@@ -8057,6 +8060,9 @@ public class AlertsCreator {
                     deleteForAll[0] = !deleteForAll[0];
                     cell12.setChecked(deleteForAll[0], true);
                 });
+                if (desu.inugram.InuConfig.DELETE_FOR_BOTH_MESSAGES.getValue()) {
+                    cell.setChecked(deleteForAll[0] = true, false);
+                }
                 builder.setView(frameLayout);
                 builder.setCustomViewOffset(9);
             }
@@ -8116,6 +8122,9 @@ public class AlertsCreator {
                     deleteForAll[0] = !deleteForAll[0];
                     cell1.setChecked(deleteForAll[0], true);
                 });
+                if (desu.inugram.InuConfig.DELETE_FOR_BOTH_MESSAGES.getValue()) {
+                    cell.setChecked(deleteForAll[0] = true, false);
+                }
                 builder.setView(frameLayout);
                 builder.setCustomViewOffset(9);
             }
