From 36f85fc97e1a547c0dadc26d1e930ad1a4695d6c Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Fri, 16 Feb 2024 15:18:18 -0500 Subject: [PATCH] Fix an inverted boolean in a counter --- .../textsecuregcm/controllers/KeysController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/KeysController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/KeysController.java index 8a3a6b010..aa881b3df 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/KeysController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/KeysController.java @@ -288,7 +288,7 @@ public class KeysController { Tag.of("targetPlatform", getDevicePlatform(device).map(Enum::name).orElse("unknown")), Tag.of(IDENTITY_TYPE_TAG_NAME, targetIdentifier.identityType().name()), Tag.of("isStale", String.valueOf(isDeviceStale(device))), - Tag.of("oneTimeEcKeyAvailable", String.valueOf(unsignedEcPreKey == null)))) + Tag.of("oneTimeEcKeyAvailable", String.valueOf(unsignedEcPreKey != null)))) .increment(); if (signedEcPreKey != null || unsignedEcPreKey != null || pqPreKey != null) {