mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: Fixed typescript build at chat-utils.ts file (#118)
This commit is contained in:
@@ -840,8 +840,8 @@ export const processSyncAction = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isValidPatchBasedOnMessageRange(chat: Chat, msgRange: proto.SyncActionValue.ISyncActionMessageRange | null | undefined) {
|
function isValidPatchBasedOnMessageRange(chat: Chat, msgRange: proto.SyncActionValue.ISyncActionMessageRange | null | undefined) {
|
||||||
const lastMsgTimestamp = msgRange?.lastMessageTimestamp || msgRange?.lastSystemMessageTimestamp || 0
|
const lastMsgTimestamp = Number(msgRange?.lastMessageTimestamp || msgRange?.lastSystemMessageTimestamp || 0)
|
||||||
const chatLastMsgTimestamp = chat?.lastMessageRecvTimestamp || 0
|
const chatLastMsgTimestamp = Number(chat?.lastMessageRecvTimestamp || 0)
|
||||||
return lastMsgTimestamp >= chatLastMsgTimestamp
|
return lastMsgTimestamp >= chatLastMsgTimestamp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user