mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Explicit waitForConnection + option to not load profile picture for new chats
This commit is contained in:
@@ -199,8 +199,9 @@ export class WAConnection extends Base {
|
||||
name
|
||||
}
|
||||
this.chats.insert (chat)
|
||||
|
||||
await this.setProfilePicture (chat)
|
||||
if (this.loadProfilePicturesForChatsAutomatically) {
|
||||
await this.setProfilePicture (chat)
|
||||
}
|
||||
this.emit ('chat-new', chat)
|
||||
|
||||
return chat
|
||||
|
||||
Reference in New Issue
Block a user