mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix presence.lastSeen is always undefined (https://github.com/adiwajshing/Baileys/issues/1377) (#1389)
Co-authored-by: morok <morok@nanofo.com>
This commit is contained in:
@@ -412,7 +412,7 @@ export const makeChatsSocket = (config: SocketConfig) => {
|
||||
if(tag === 'presence') {
|
||||
presence = {
|
||||
lastKnownPresence: attrs.type === 'unavailable' ? 'unavailable' : 'available',
|
||||
lastSeen: attrs.t ? +attrs.t : undefined
|
||||
lastSeen: attrs.last ? +attrs.last : undefined
|
||||
}
|
||||
} else if(Array.isArray(content)) {
|
||||
const [firstChild] = content
|
||||
|
||||
Reference in New Issue
Block a user