mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
minor bug fixes
This commit is contained in:
@@ -115,7 +115,7 @@ export default(
|
||||
const list = assertMessageList(jid)
|
||||
const [lastItem] = list.array.slice(-1)
|
||||
// reset message list
|
||||
if(lastItem && lastItem.key.id !== msg.key.id) {
|
||||
if(lastItem?.key.id !== msg.key.id) {
|
||||
list.clear()
|
||||
list.upsert(msg, 'append')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user