From 5bdfc631058fdb0f7a83b6865339b134a3f62453 Mon Sep 17 00:00:00 2001 From: Akhlaqul Muhammad Fadwa <75623219+zennn08@users.noreply.github.com> Date: Fri, 12 Jul 2024 08:04:01 +0700 Subject: [PATCH] fix: profilePictureUrl (#901) --- src/Socket/chats.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index 6eb14d7..e9ee6df 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -529,7 +529,8 @@ export const makeChatsSocket = (config: SocketConfig) => { const result = await query({ tag: 'iq', attrs: { - to: jid, + target: jid, + to: S_WHATSAPP_NET, type: 'get', xmlns: 'w:profile:picture' },