duplicate key bug fix

This commit is contained in:
Adhiraj
2020-08-29 14:48:55 +05:30
parent 536d12a200
commit 904bade7a8

View File

@@ -182,8 +182,9 @@ export class WAConnection extends Base {
spam: 'false',
name
}
await this.setProfilePicture (chat)
this.chats.insert (chat)
await this.setProfilePicture (chat)
this.emit ('chat-new', chat)
return chat
}