mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Defer to the latest revision for backup inclusion.
This commit is contained in:
@@ -588,11 +588,11 @@ public class FullBackupExporter extends FullBackupBase {
|
||||
long expiresAt = expireStarted + expiresIn;
|
||||
long timeRemaining = expiresAt - System.currentTimeMillis();
|
||||
|
||||
if (expireStarted > 0 && timeRemaining <= EXPIRATION_BACKUP_THRESHOLD) {
|
||||
return false;
|
||||
if (latestRevisionId > 0 && latestRevisionId != id ) {
|
||||
return isForNonExpiringMessage(db, latestRevisionId);
|
||||
}
|
||||
|
||||
if (latestRevisionId > 0 && latestRevisionId != id && !isForNonExpiringMessage(db, latestRevisionId)) {
|
||||
if (expireStarted > 0 && timeRemaining <= EXPIRATION_BACKUP_THRESHOLD) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user