wa-automate-nodejs icon indicating copy to clipboard operation
wa-automate-nodejs copied to clipboard

setGroupEditToAdminsOnly not work property

Open fukumori opened this issue 3 years ago • 3 comments

Are you using the latest version of the library?

  • [X] I have checked and am using the latest version of the library.

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Personal account (normal)

Mode

EASY API/CLI

Current Behavior

Jul 22 12:43:15 [179151]: info: MDLWR - setGroupEditToAdminsOnly : {"args":{"groupId":"[email protected]","onlyAdmins":true}} {"timestamp":"2022-07-22T15:43:15.107Z"}
Jul 22 12:43:15 [179151]: info: methodArgs: groupId,onlyAdmins {"timestamp":"2022-07-22T15:43:15.109Z"}
Jul 22 12:43:15 [179151]: info: IN d6af2  {"_args":{"groupId":"[email protected]","onlyAdmins":true},"_method":"setGroupEditToAdminsOnly","timestamp":"2022-07-22T15:43:15.109Z"}
Jul 22 12:43:15 [179151]: info: OUT d6af2: 235ms  {"res":true,"timestamp":"2022-07-22T15:43:15.344Z"}

Expected Behavior

Returns true but not change to admin only. All participants can edit group info.

Steps To Reproduce

setGroupEditToAdminsOnly

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

{
  "WA_VERSION": "2.2226.5",
  "WA_AUTOMATE_VERSION": "4.42.8",
  "BROWSER_VERSION": "HeadlessChrome/103.0.5060.134",
  "START_TS": 1658502335377,
  "RAM_INFO": "Total: 2.08 GB | Free: 1.64 GB",
  "PPTR_VERSION": "15.0.0",
  "LATEST_VERSION": true,
  "CLI": true,
  "PATCH_HASH": "a92c2",
  "LAUNCH_TIME_MS": 18921,
  "ACC_TYPE": "PERSONAL",
  "chats": 31,
  "messages": 31,
  "contacts": 3606,
  "isMd": true,
  "INSTANCE_ID": "4b94bc94-2d95-486d-9139-c034ecf9f953"
}

Environment

- OS: Linux 5.4
- Node: 16.16.0
- npm: 8.11.0

Screenshots/Logs

No response

Anything else?

No response

fukumori avatar Jul 22 '22 15:07 fukumori

@fukumori are you sure about this? Seems to be working fine here. Please triple check

smashah avatar Jul 28 '22 03:07 smashah

I'm having the same issue, sending "onlyAdmins: true" makes it so every participant can edit group info. I haven't tested with old groups, but when they're recently created within the same session, then it won't work.

Edit: Something is clearly off, because when the function is called from open-wa, you can see the message notification on WhatsApp Web (bottom left, black rectangle notification box) clearly saying "You allowed only admins to change this group's info.", but the notification on the chat says "You changed this group's settings to allow all participants to edit this group's info."

garciabruno avatar Aug 11 '22 16:08 garciabruno

thanks for the detail @garciabruno

smashah avatar Aug 11 '22 21:08 smashah

@garciabruno @fukumori should be fixed now via patches. please restart and try again

smashah avatar Aug 14 '22 13:08 smashah