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 /*backupsSubscriberCurrencyCode*/ 37;
reserved /*backupsSubscriptionManuallyCancelled*/ 38; reserved /*backupsSubscriptionManuallyCancelled*/ 38;
// Set to true after backups are enabled and one is uploaded. // 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. // See zkgroup for integer particular values. Unset if backups are not enabled.
optional uint64 backupTier = 40; optional uint64 backupTier = 40;
IAPSubscriberData backupSubscriberData = 41; IAPSubscriberData backupSubscriberData = 41;

View File

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

View File

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