mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added mutex + fixed rare duplicate chats bug + fixed connect bug
The mutex will prevent duplicate functions from being called and throwing funky errors.
This commit is contained in:
@@ -55,7 +55,7 @@ export class WAConnection extends EventEmitter {
|
||||
/** Whether the phone is connected */
|
||||
phoneConnected: boolean = false
|
||||
|
||||
maxCachedMessages = 25
|
||||
maxCachedMessages = 50
|
||||
|
||||
chats: KeyedDB<WAChat> = new KeyedDB (Utils.waChatUniqueKey, value => value.jid)
|
||||
contacts: { [k: string]: WAContact } = {}
|
||||
|
||||
Reference in New Issue
Block a user