Skip to content

Commit

Permalink
fix: Fixed changePrivacyGroup function (close #1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
moskoweb committed Jun 20, 2023
1 parent 3d30923 commit ed5fd14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/groupController.ts
Expand Up @@ -973,7 +973,7 @@ export async function changePrivacyGroup(req: Request, res: Response) {

try {
for (const group of contactToArray(groupId)) {
await req.client.setMessagesAdminsOnly(group, status === 'true');
await req.client.setGroupProperty(group, 'restrict', status === 'true');

Check failure on line 976 in src/controller/groupController.ts

View workflow job for this annotation

GitHub Actions / build

Argument of type '"restrict"' is not assignable to parameter of type 'GroupProperty'.
}

return res.status(200).json({
Expand Down

0 comments on commit ed5fd14

Please sign in to comment.