Fix tracking of created_at in SenderKeyDatabase.

This commit is contained in:
Greyson Parrelli
2021-11-06 00:18:42 -04:00
parent f5af964286
commit 100796b3b9
4 changed files with 27 additions and 10 deletions

View File

@@ -216,7 +216,7 @@ public final class GroupSendUtil {
long keyAge = System.currentTimeMillis() - keyCreateTime;
if (keyCreateTime != -1 && keyAge > FeatureFlags.senderKeyMaxAge()) {
Log.w(TAG, "Key is " + (keyAge) + " ms old (~" + TimeUnit.MILLISECONDS.toDays(keyAge) + " days). Rotating.");
Log.w(TAG, "DistributionId " + distributionId + " was created at " + keyCreateTime + " and is " + (keyAge) + " ms old (~" + TimeUnit.MILLISECONDS.toDays(keyAge) + " days). Rotating.");
SenderKeyUtil.rotateOurKey(context, distributionId);
}