Populate dataMessage on CallbackResultType when sending 1:1 messages

This commit is contained in:
Scott Nonnenberg 2022-03-04 17:39:37 -08:00 committed by GitHub
parent 78fd36e880
commit 4be2a33be5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 10 deletions

View file

@ -75,7 +75,7 @@ export async function wrapWithSyncMessageSend({
`wrapWithSyncMessageSend/${logId}: dataMessage was not returned by send!`
);
} else {
log.error(`wrapWithSyncMessageSend/${logId}: Sending sync message...`);
log.info(`wrapWithSyncMessageSend/${logId}: Sending sync message...`);
const ourConversation =
window.ConversationController.getOurConversationOrThrow();
const options = await getSendOptions(ourConversation.attributes, {
@ -83,8 +83,8 @@ export async function wrapWithSyncMessageSend({
});
await handleMessageSend(
sender.sendSyncMessage({
destination: ourConversation.get('e164'),
destinationUuid: ourConversation.get('uuid'),
destination: conversation.get('e164'),
destinationUuid: conversation.get('uuid'),
encodedDataMessage: dataMessage,
expirationStartTimestamp: null,
options,