mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
possible duplicate key fix
This commit is contained in:
@@ -160,6 +160,8 @@ export class WAConnection extends Base {
|
||||
}
|
||||
/** inserts an empty chat into the DB */
|
||||
protected async chatAdd (jid: string, name?: string) {
|
||||
if (this.chats.get (jid)) return
|
||||
|
||||
const chat: WAChat = {
|
||||
jid: jid,
|
||||
t: unixTimestampSeconds(),
|
||||
|
||||
Reference in New Issue
Block a user