update chatlist title on profile deletion; this is needed to show 'Delta Chat' in case only one profile is left

This commit is contained in:
B. Petersen
2024-10-08 18:48:13 +02:00
committed by bjoern
parent 304942e98b
commit 6fe5ed32cb
@@ -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);