From 07561bec5355914dfa1f8b76f6bb15c20b867398 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Mon, 27 Sep 2021 15:58:12 +0530 Subject: [PATCH] normalize jid before profile picture --- src/Socket/chats.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index 6991aac..059d61a 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -215,6 +215,7 @@ export const makeChatsSocket = (config: SocketConfig) => { } const profilePictureUrl = async(jid: string) => { + jid = jidNormalizedUser(jid) const result = await query({ tag: 'iq', attrs: {