Chat ordering update

This commit is contained in:
Adhiraj
2020-10-04 18:29:35 +05:30
parent 0d13a15904
commit 64c9b7449e
8 changed files with 47 additions and 48 deletions

View File

@@ -167,7 +167,7 @@ export class WAConnection extends Base {
* Must be called immediately after connect
*/
protected receiveChatsAndContacts(waitOnlyForLast: boolean) {
const chats = new KeyedDB<WAChat>(this.chatOrderingKey, c => c.jid)
const chats = new KeyedDB(this.chatOrderingKey, c => c.jid)
const contacts = {}
let receivedContacts = false