mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 15:16:47 +00:00
Ignore expired devices when checking for GV1->GV2 migration capability.
This commit is contained in:
1 parent
a4cd30451c
commit
8f94ed68a3
2 files changed
+9
-2
No files matched your search
@@ -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