Import/export chat styles

This commit is contained in:
Fedor Indutny
2024-07-15 13:58:55 -07:00
committed by GitHub
parent 6fb76e00c4
commit 8f2061e11d
15 changed files with 663 additions and 47 deletions

View File

@@ -368,6 +368,7 @@ async function bulkAddSignedPreKeys(
// Items
const ITEM_SPECS: Partial<Record<ItemKeyType, ObjectMappingSpecType>> = {
defaultWallpaperPhotoPointer: ['value'],
identityKeyMap: {
key: 'value',
valueSpec: {
@@ -379,6 +380,7 @@ const ITEM_SPECS: Partial<Record<ItemKeyType, ObjectMappingSpecType>> = {
senderCertificate: ['value.serialized'],
senderCertificateNoE164: ['value.serialized'],
subscriberId: ['value'],
backupsSubscriberId: ['value'],
usernameLink: ['value.entropy', 'value.serverId'],
};
async function createOrUpdateItem<K extends ItemKeyType>(