chore: Add messageTimestamp to message updates in messages-recv when receiving a message status update (#2277)

This commit is contained in:
Luiz Braga
2026-01-20 07:37:34 -03:00
committed by GitHub
parent 5887551d68
commit 32134a870e
+2 -1
View File
@@ -37,6 +37,7 @@ import {
MISSING_KEYS_ERROR_TEXT,
NACK_REASONS,
NO_MESSAGE_FOUND_ERROR_TEXT,
toNumber,
unixTimestampSeconds,
xmppPreKey,
xmppSignedPreKey
@@ -1097,7 +1098,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
'messages.update',
ids.map(id => ({
key: { ...key, id },
update: { status }
update: { status, messageTimestamp: toNumber(+(attrs.t ?? 0)) }
}))
)
}