mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 00:07:56 +01:00
Update storage proto and handle invalid callHistory messages
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -566,8 +566,6 @@ export function toAccountRecord(
|
||||
? donorSubscriptionManuallyCanceled
|
||||
: null,
|
||||
|
||||
// TODO: DESKTOP-9870
|
||||
hasBackup: null,
|
||||
backupSubscriberData: generateBackupsSubscriberData(),
|
||||
backupTier: backupTier != null ? BigInt(backupTier) : null,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user