Migrate schema to service ids

This commit is contained in:
Fedor Indutny 2023-08-16 22:54:39 +02:00 committed by Jamie Kyle
parent 71958f8a01
commit 8b0da36caa
258 changed files with 4795 additions and 2613 deletions

View file

@ -93,7 +93,7 @@ export async function getSendOptions(
};
}
const { e164, uuid } = conversationAttrs;
const { e164, serviceId } = conversationAttrs;
const senderCertificate = await getSenderCertificateForDirectConversation(
conversationAttrs
@ -112,7 +112,7 @@ export async function getSendOptions(
return {
sendMetadata: {
...(e164 ? { [e164]: identifierData } : {}),
...(uuid ? { [uuid]: identifierData } : {}),
...(serviceId ? { [serviceId]: identifierData } : {}),
},
};
}
@ -134,7 +134,7 @@ export async function getSendOptions(
return {
sendMetadata: {
...(e164 ? { [e164]: identifierData } : {}),
...(uuid ? { [uuid]: identifierData } : {}),
...(serviceId ? { [serviceId]: identifierData } : {}),
},
};
}