diff --git a/src/WAConnection/4.Events.ts b/src/WAConnection/4.Events.ts index e46b107..046905f 100644 --- a/src/WAConnection/4.Events.ts +++ b/src/WAConnection/4.Events.ts @@ -182,8 +182,9 @@ export class WAConnection extends Base { spam: 'false', name } - await this.setProfilePicture (chat) this.chats.insert (chat) + + await this.setProfilePicture (chat) this.emit ('chat-new', chat) return chat }