From 6fe5ed32cb4189afef29162d42d3090b25224edd Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 8 Oct 2024 18:48:13 +0200 Subject: [PATCH] update chatlist title on profile deletion; this is needed to show 'Delta Chat' in case only one profile is left --- .../securesms/accounts/AccountSelectionListFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java b/src/main/java/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java index cebffb544..8232bc9e5 100644 --- a/src/main/java/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java +++ b/src/main/java/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java @@ -24,6 +24,7 @@ import com.b44t.messenger.rpc.Rpc; import com.b44t.messenger.rpc.RpcException; import org.thoughtcrime.securesms.ConnectivityActivity; +import org.thoughtcrime.securesms.ConversationListActivity; import org.thoughtcrime.securesms.R; import org.thoughtcrime.securesms.components.AvatarView; import org.thoughtcrime.securesms.connect.AccountManager; @@ -159,6 +160,11 @@ public class AccountSelectionListFragment extends DialogFragment } else { AccountManager.getInstance().showSwitchAccountMenu(activity); } + + // title update needed to show "Delta Chat" in case there is only one profile left + if (activity instanceof ConversationListActivity) { + ((ConversationListActivity)activity).refreshTitle(); + } }) .show(); Util.redPositiveButton(dialog);