mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 21:28:02 +01:00
Ignore expired devices when checking for GV1->GV2 migration capability.
This commit is contained in:
committed by
Jon Chambers
parent
a4cd30451c
commit
8f94ed68a3
@@ -139,7 +139,9 @@ public class Account implements Principal {
|
||||
}
|
||||
|
||||
public boolean isGv1MigrationSupported() {
|
||||
return devices.stream().allMatch(device -> device.getCapabilities() != null && device.getCapabilities().isGv1Migration());
|
||||
return devices.stream()
|
||||
.filter(Device::isEnabled)
|
||||
.allMatch(device -> device.getCapabilities() != null && device.getCapabilities().isGv1Migration());
|
||||
}
|
||||
|
||||
public boolean isEnabled() {
|
||||
|
||||
Reference in New Issue
Block a user