From a32c8fabed727cc02e8a2557acf89f0c069d21b4 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Mon, 20 Apr 2020 13:42:36 -0700 Subject: [PATCH] Temporarily move GV2 capability from allMatch to anyMatch --- .../java/org/whispersystems/textsecuregcm/storage/Account.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java b/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java index cea68157a..371991810 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/storage/Account.java @@ -142,7 +142,7 @@ public class Account implements Principal { public boolean isGroupsV2Supported() { return devices.stream() .filter(Device::isEnabled) - .allMatch(device -> device.getCapabilities() != null && device.getCapabilities().isGv2()); + .anyMatch(device -> device.getCapabilities() != null && device.getCapabilities().isGv2()); } public boolean isStorageSupported() {