mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 19:26:17 +00:00
Align linked device megaphone lifespan.
Thank you to Signal.DE from the community forum.
This commit is contained in:
@@ -176,7 +176,7 @@ public final class Megaphones {
|
||||
throw new IllegalStateException("No linked device to show");
|
||||
}
|
||||
|
||||
long expiringAt = device.lastActiveTimestamp + TimeUnit.DAYS.toMillis(30);
|
||||
long expiringAt = device.lastActiveTimestamp + FeatureFlags.linkedDeviceLifespan();
|
||||
long expiringIn = Math.max(expiringAt - System.currentTimeMillis(), 0);
|
||||
int expiringDays = (int) TimeUnit.MILLISECONDS.toDays(expiringIn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user