mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Compile protobufs with no-convert/null-defaults
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Copyright 2019 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { isNumber, pick, reject, groupBy, values } from 'lodash';
|
||||
import { isNumber, reject, groupBy, values } from 'lodash';
|
||||
import pMap from 'p-map';
|
||||
import Queue from 'p-queue';
|
||||
|
||||
@@ -472,7 +472,8 @@ export async function downloadEphemeralPack(
|
||||
coverStickerId,
|
||||
stickerCount,
|
||||
status: 'ephemeral' as const,
|
||||
...pick(proto, ['title', 'author']),
|
||||
title: proto.title ?? '',
|
||||
author: proto.author ?? '',
|
||||
};
|
||||
stickerPackAdded(pack);
|
||||
|
||||
@@ -691,7 +692,8 @@ async function doDownloadStickerPack(
|
||||
createdAt: Date.now(),
|
||||
stickers: {},
|
||||
storageNeedsSync: !fromStorageService,
|
||||
...pick(proto, ['title', 'author']),
|
||||
title: proto.title ?? '',
|
||||
author: proto.author ?? '',
|
||||
};
|
||||
await Data.createOrUpdateStickerPack(pack);
|
||||
stickerPackAdded(pack);
|
||||
|
||||
Reference in New Issue
Block a user