From 0ec46d1d34f6f711aea651e50fb041e000d6486a Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 9 Apr 2024 10:42:44 +0200 Subject: [PATCH] trigger message deletion after toggling setting --- .../ui/fragment/settings/SecuritySettingsFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/ui/fragment/settings/SecuritySettingsFragment.java b/src/main/java/eu/siacs/conversations/ui/fragment/settings/SecuritySettingsFragment.java index 0abe88838..2890db7ab 100644 --- a/src/main/java/eu/siacs/conversations/ui/fragment/settings/SecuritySettingsFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/fragment/settings/SecuritySettingsFragment.java @@ -73,6 +73,9 @@ public class SecuritySettingsFragment extends XmppPreferenceFragment { case AppSettings.REQUIRE_CHANNEL_BINDING -> { reconnectAccounts(); } + case AppSettings.AUTOMATIC_MESSAGE_DELETION -> { + requireService().expireOldMessages(true); + } } }