mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Chat ordering update
This commit is contained in:
@@ -55,7 +55,7 @@ export class WAConnection extends EventEmitter {
|
||||
/** Whether the phone is connected */
|
||||
phoneConnected: boolean = false
|
||||
/** key to use to order chats */
|
||||
chatOrderingKey = Utils.WA_CHAT_KEY
|
||||
chatOrderingKey = Utils.waChatKey(false)
|
||||
|
||||
/** log messages */
|
||||
shouldLogMessages = false
|
||||
@@ -63,7 +63,7 @@ export class WAConnection extends EventEmitter {
|
||||
|
||||
maxCachedMessages = 50
|
||||
|
||||
chats: KeyedDB<WAChat> = new KeyedDB (Utils.WA_CHAT_KEY, value => value.jid)
|
||||
chats = new KeyedDB (Utils.waChatKey(false), value => value.jid)
|
||||
contacts: { [k: string]: WAContact } = {}
|
||||
|
||||
/** Data structure of tokens & IDs used to establish one's identiy to WhatsApp Web */
|
||||
|
||||
Reference in New Issue
Block a user