spantaleev / matrix-docker-ansible-deploy

🐳 Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker
GNU Affero General Public License v3.0
4.67k stars 1.01k forks source link

[mautrix-whatsapp] Provide config-bit for disabling whatsapp status broadcast #1273

Open knoedel001 opened 2 years ago

knoedel001 commented 2 years ago

Hello,

I'm pretty annoyed by the WhatsApp Status Broadcast Channel created by mautrix-whatsapp. The developer added a config flag to turn status broadcast off, see https://github.com/mautrix/whatsapp/issues/166.

Unfortunately, I was not able to correctly disable that feature in any way. Even pasting the line _enable_statusbroadcast: false in the config file /mautrix-whatsapp/config/config.yaml directly on the server didn't change anything (yep, restarted the bridge container).

Can you please point me in the right directon on how to disable this for now and add the flag for configuration through the host_vars?

aaronraimist commented 2 years ago

I don't use the WhatsApp bridge but the proper way to fix it should be to add

matrix_mautrix_whatsapp_configuration_extension_yaml: |
  bridge:
    enable_status_broadcast: false

to your vars.yml file and then rerun the setup-all and start tags.

Also note the comment above that config option "Disabling this won't affect already created status broadcast rooms". So you probably need to leave the room manually after you turn this off.

knoedel001 commented 2 years ago

Thank you for the hint. This produces exactly the same configuration entry in mautrix-whatsapp's config.yaml which I already tried, but the status updates keep on recreating the channel and notify on every status change. Maybe there is a bug on the mautrix-side, I will create an issue for mautrix-whatsapp.

ddogfoodd commented 2 years ago

Weird, this exact code works for me.

etkecc commented 2 years ago

The issue still exists, both on bridge v0.30 and latest / master.