fix: do not throw error on conditions not matching in lastMessage check

This commit is contained in:
Adhiraj Singh
2022-04-28 15:24:10 +05:30
parent 13ca4c5917
commit dba6d2e0cb
2 changed files with 4 additions and 12 deletions

View File

@@ -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'>[]