From 0cdc32cf65408c387a59a154adf7fd589ad36da5 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Tue, 17 Oct 2023 15:55:52 -0400 Subject: [PATCH] Really REALLY fix instrumentation for re-registration of recently-deleted accounts --- .../whispersystems/textsecuregcm/storage/AccountsManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/storage/AccountsManager.java b/service/src/main/java/org/whispersystems/textsecuregcm/storage/AccountsManager.java index 1bdb183a2..0b2559589 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/storage/AccountsManager.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/storage/AccountsManager.java @@ -250,9 +250,7 @@ public class AccountsManager { final Tags tags; if (freshUser) { - tags = Tags.of("type", "new"); - } else if (maybeRecentlyDeletedAccountIdentifier.isPresent()) { - tags = Tags.of("type", "recently-deleted"); + tags = Tags.of("type", maybeRecentlyDeletedAccountIdentifier.isPresent() ? "recently-deleted" : "new"); } else { tags = Tags.of("type", "re-registration"); }