Init CallLinkDetails view in calls tab

This commit is contained in:
Jamie Kyle 2024-05-22 09:24:27 -07:00 committed by GitHub
parent e9b661873b
commit 19083cadf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 665 additions and 222 deletions

View file

@ -78,10 +78,13 @@ export async function maybeForwardMessages(
const preparedMessages = await Promise.all(
messages.map(async message => {
const { draft, originalMessage } = message;
const { sticker, contact } = originalMessage;
const { sticker, contact } = originalMessage ?? {};
const { attachments, bodyRanges, messageBody, previews } = draft;
const idForLogging = getMessageIdForLogging(originalMessage);
const idForLogging =
originalMessage != null
? getMessageIdForLogging(originalMessage)
: '(new message)';
log.info(`maybeForwardMessage: Forwarding ${idForLogging}`);
const attachmentLookup = new Set();
@ -180,7 +183,9 @@ export async function maybeForwardMessages(
log.error(
'maybeForwardMessage: message send error',
getConversationIdForLogging(conversation.attributes),
getMessageIdForLogging(originalMessage),
originalMessage != null
? getMessageIdForLogging(originalMessage)
: '(new message)',
toLogFormat(error)
);
})