mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 05:56:47 +00:00
Increase the linked device idle timeout to 45 days
This commit is contained in:
1 parent
100955a7db
commit
0eb7db8de5
2 files changed
+3
-3
No files matched your search
@@ -25,7 +25,7 @@ public class Device {
|
||||
public static final List<Byte> ALL_POSSIBLE_DEVICE_IDS = IntStream.range(Device.PRIMARY_ID, MAXIMUM_DEVICE_ID).boxed()
|
||||
.map(Integer::byteValue).collect(Collectors.toList());
|
||||
|
||||
private static final long ALLOWED_LINKED_IDLE_MILLIS = Duration.ofDays(30).toMillis();
|
||||
private static final long ALLOWED_LINKED_IDLE_MILLIS = Duration.ofDays(45).toMillis();
|
||||
private static final long ALLOWED_PRIMARY_IDLE_MILLIS = Duration.ofDays(180).toMillis();
|
||||
|
||||
@JsonDeserialize(using = DeviceIdDeserializer.class)
|
||||
|
||||
@@ -22,8 +22,8 @@ class DeviceTest {
|
||||
"true, P180D, false",
|
||||
"true, P181D, true",
|
||||
"false, P1D, false",
|
||||
"false, P30D, false",
|
||||
"false, P31D, true",
|
||||
"false, P45D, false",
|
||||
"false, P46D, true",
|
||||
"false, P180D, true",
|
||||
})
|
||||
public void testIsExpired(final boolean primary, final Duration timeSinceLastSeen, final boolean expectExpired) {
|
||||
|
||||
Reference in new issue
Block a user