minor bug fixes

This commit is contained in:
Adhiraj Singh
2021-07-16 01:55:04 +05:30
parent 753ecf099b
commit f356fa1811
2 changed files with 5 additions and 5 deletions

View File

@@ -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')
}