mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: typeerror on no messages provided
This commit is contained in:
@@ -421,7 +421,7 @@ export const chatModificationToAppPatch = (
|
|||||||
) => {
|
) => {
|
||||||
const OP = proto.SyncdMutation.SyncdMutationSyncdOperation
|
const OP = proto.SyncdMutation.SyncdMutationSyncdOperation
|
||||||
const messageRange: proto.ISyncActionMessageRange = {
|
const messageRange: proto.ISyncActionMessageRange = {
|
||||||
lastMessageTimestamp: lastMessages[lastMessages.length-1].messageTimestamp,
|
lastMessageTimestamp: lastMessages[lastMessages.length-1]?.messageTimestamp,
|
||||||
messages: lastMessages
|
messages: lastMessages
|
||||||
}
|
}
|
||||||
let patch: WAPatchCreate
|
let patch: WAPatchCreate
|
||||||
|
|||||||
Reference in New Issue
Block a user