Fix send state "updated at" timestamp for receipts
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
This commit is contained in:
parent
7f8a9a7489
commit
243f50ee92
|
@ -141,6 +141,7 @@ export class MessageReceipts extends Collection<MessageReceiptModel> {
|
||||||
async onReceipt(receipt: MessageReceiptModel): Promise<void> {
|
async onReceipt(receipt: MessageReceiptModel): Promise<void> {
|
||||||
const type = receipt.get('type');
|
const type = receipt.get('type');
|
||||||
const messageSentAt = receipt.get('messageSentAt');
|
const messageSentAt = receipt.get('messageSentAt');
|
||||||
|
const receiptTimestamp = receipt.get('receiptTimestamp');
|
||||||
const sourceConversationId = receipt.get('sourceConversationId');
|
const sourceConversationId = receipt.get('sourceConversationId');
|
||||||
const sourceUuid = receipt.get('sourceUuid');
|
const sourceUuid = receipt.get('sourceUuid');
|
||||||
|
|
||||||
|
@ -191,7 +192,7 @@ export class MessageReceipts extends Collection<MessageReceiptModel> {
|
||||||
|
|
||||||
const newSendState = sendStateReducer(oldSendState, {
|
const newSendState = sendStateReducer(oldSendState, {
|
||||||
type: sendActionType,
|
type: sendActionType,
|
||||||
updatedAt: messageSentAt,
|
updatedAt: receiptTimestamp,
|
||||||
});
|
});
|
||||||
|
|
||||||
// The send state may not change. For example, this can happen if we get a read
|
// The send state may not change. For example, this can happen if we get a read
|
||||||
|
|
Loading…
Reference in New Issue