Update storage proto and handle invalid callHistory messages

This commit is contained in:
trevor-signal
2026-03-11 11:15:58 -04:00
committed by GitHub
parent 75659bf6df
commit 626647ae1e
3 changed files with 3 additions and 6 deletions

View File

@@ -294,7 +294,7 @@ message AccountRecord {
reserved /*backupsSubscriberCurrencyCode*/ 37;
reserved /*backupsSubscriptionManuallyCancelled*/ 38;
// Set to true after backups are enabled and one is uploaded.
optional bool hasBackup = 39;
reserved /*hasBackup*/ 39;
// See zkgroup for integer particular values. Unset if backups are not enabled.
optional uint64 backupTier = 40;
IAPSubscriberData backupSubscriberData = 41;

View File

@@ -1952,9 +1952,8 @@ export class BackupExportStream extends Readable {
);
if (!conversation) {
throw new Error(
`${logId}: callHistory message had unknown conversationId!`
);
log.error(`${logId}: callHistory message had unknown conversationId!`);
return { kind: NonBubbleResultKind.Drop };
}
const { callId } = message;

View File

@@ -566,8 +566,6 @@ export function toAccountRecord(
? donorSubscriptionManuallyCanceled
: null,
// TODO: DESKTOP-9870
hasBackup: null,
backupSubscriberData: generateBackupsSubscriberData(),
backupTier: backupTier != null ? BigInt(backupTier) : null,