Merge branch 'WhiskeySockets:master' into master

This commit is contained in:
Renato Alcara
2026-01-20 09:58:02 -03:00
committed by GitHub
17 changed files with 1248 additions and 109 deletions
+8
View File
@@ -1185,6 +1185,14 @@ export const makeChatsSocket = (config: SocketConfig) => {
}, 20_000)
})
ev.on('lid-mapping.update', async ({ lid, pn }) => {
try {
await signalRepository.lidMapping.storeLIDPNMappings([{ lid, pn }])
} catch (error) {
logger.warn({ lid, pn, error }, 'Failed to store LID-PN mapping')
}
})
return {
...sock,
createCallLink,
+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)) }
}))
)
}