mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
updated connect & message sending
This commit is contained in:
@@ -234,7 +234,7 @@ export class WAConnection extends Base {
|
||||
const oldChats = this.chats
|
||||
const updatedChats: { [k: string]: Partial<WAChat> } = {}
|
||||
|
||||
for (let chat of chats.all()) {
|
||||
chats.all().forEach (chat => {
|
||||
const respectiveContact = contacts[chat.jid]
|
||||
chat.name = respectiveContact?.name || respectiveContact?.notify || chat.name
|
||||
|
||||
@@ -246,8 +246,8 @@ export class WAConnection extends Base {
|
||||
delete changes.messages
|
||||
updatedChats[chat.jid] = changes
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
this.chats = chats
|
||||
this.contacts = contacts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user