mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 04:48:04 +01:00
Check for newly-expired accounts before previously-expired accounts for metric accuracy
This commit is contained in:
committed by
Jon Chambers
parent
d452e90470
commit
f6235b8c08
@@ -50,10 +50,10 @@ public class AccountCleaner extends AccountDatabaseCrawlerListener {
|
||||
if (isExpired(account) || needsExplicitRemoval(account)) {
|
||||
final Tag deletionReason;
|
||||
|
||||
if (isExpired(account)) {
|
||||
deletionReason = Tag.of(DELETION_REASON_TAG_NAME, "previouslyExpired");
|
||||
} else {
|
||||
if (needsExplicitRemoval(account)) {
|
||||
deletionReason = Tag.of(DELETION_REASON_TAG_NAME, "newlyExpired");
|
||||
} else {
|
||||
deletionReason = Tag.of(DELETION_REASON_TAG_NAME, "previouslyExpired");
|
||||
}
|
||||
|
||||
if (accountUpdateCount < MAX_ACCOUNT_DELETIONS_PER_CHUNK) {
|
||||
|
||||
Reference in New Issue
Block a user