Skip to content

Commit

Permalink
Fix send state "updated at" timestamp for receipts
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
  • Loading branch information
automated-signal and EvanHahn-Signal committed Nov 5, 2021
1 parent 7f8a9a7 commit 243f50e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/messageModifiers/MessageReceipts.ts
Expand Up @@ -141,6 +141,7 @@ export class MessageReceipts extends Collection<MessageReceiptModel> {
async onReceipt(receipt: MessageReceiptModel): Promise<void> {
const type = receipt.get('type');
const messageSentAt = receipt.get('messageSentAt');
const receiptTimestamp = receipt.get('receiptTimestamp');
const sourceConversationId = receipt.get('sourceConversationId');
const sourceUuid = receipt.get('sourceUuid');

Expand Down Expand Up @@ -191,7 +192,7 @@ export class MessageReceipts extends Collection<MessageReceiptModel> {

const newSendState = sendStateReducer(oldSendState, {
type: sendActionType,
updatedAt: messageSentAt,
updatedAt: receiptTimestamp,
});

// The send state may not change. For example, this can happen if we get a read
Expand Down

0 comments on commit 243f50e

Please sign in to comment.