mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: do not throw error on conditions not matching in lastMessage check
This commit is contained in:
@@ -33,8 +33,8 @@ export type Chat = Omit<proto.IConversation, 'messages'> & {
|
||||
archive?: boolean
|
||||
}
|
||||
/**
|
||||
* the last messages in a chat, sorted reverse-chronologically
|
||||
* for MD modifications, the last message in the array must be the last message recv in the chat
|
||||
* the last messages in a chat, sorted reverse-chronologically. That is, the latest message should be first in the chat
|
||||
* for MD modifications, the last message in the array (i.e. the earlist message) must be the last message recv in the chat
|
||||
* */
|
||||
export type LastMessageList = Pick<proto.IWebMessageInfo, 'key' | 'messageTimestamp'>[]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user