mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 07:36:00 +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 /*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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user