diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index b5a127c..5ee8bbb 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -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