Use correct timestamp for receipts of edited messages
This commit is contained in:
parent
8fe0047822
commit
5869717cd3
21 changed files with 156 additions and 52 deletions
|
@ -14,8 +14,10 @@ import { getContact } from '../messages/helpers';
|
|||
import { getQuoteBodyText } from './getQuoteBodyText';
|
||||
import { isGIF } from '../types/Attachment';
|
||||
import { isGiftBadge, isTapToView } from '../state/selectors/message';
|
||||
import * as log from '../logging/log';
|
||||
import { map, take, collect } from './iterables';
|
||||
import { strictAssert } from './assert';
|
||||
import { getMessageSentTimestamp } from './getMessageSentTimestamp';
|
||||
|
||||
export async function makeQuote(
|
||||
quotedMessage: MessageAttributesType
|
||||
|
@ -27,14 +29,13 @@ export async function makeQuote(
|
|||
const {
|
||||
attachments,
|
||||
bodyRanges,
|
||||
editMessageTimestamp,
|
||||
id: messageId,
|
||||
payment,
|
||||
preview,
|
||||
sticker,
|
||||
} = quotedMessage;
|
||||
|
||||
const quoteId = editMessageTimestamp || quotedMessage.sent_at;
|
||||
const quoteId = getMessageSentTimestamp(quotedMessage, { log });
|
||||
|
||||
return {
|
||||
authorUuid: contact.get('uuid'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue