Skip to content

Commit

Permalink
fix: Fixed get profile pic for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLourenc0 committed Jul 6, 2023
1 parent e05ae8f commit 85320b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/deviceController.ts
Expand Up @@ -1955,9 +1955,10 @@ export async function getProfilePicFromServer(req: Request, res: Response) {
}
*/
const { phone = true } = req.params;
const { isGroup = false } = req.query;
try {
let response;
for (const contato of contactToArray(phone as string, false)) {
for (const contato of contactToArray(phone as string, isGroup as boolean)) {
response = await req.client.getProfilePicFromServer(contato);
}

Expand Down

0 comments on commit 85320b5

Please sign in to comment.