mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.25k stars 172 forks source link

Membership actions (kick/invite) carried out by unbridged Matrix admins do not bridge to WA through other users #515

Open anoadragon453 opened 2 years ago

anoadragon453 commented 2 years ago

Consider a Matrix room bridged to WhatsApp with two individuals on the Matrix side:

Alice uninvites Charlie and instead Bob invites Charlie. The Charlie (WA) puppet joins the room, and Charlie is added to the group on WhatsApp.

Eventually it turns out Charlie isn't suited for this group, and Alice - a Matrix room admin - removes the Charlie (WA) puppet on Matrix. The puppet is removed from the room on Matrix, but Charlie is still in the room on WhatsApp (!). If Charlie sends a message now, the puppet will re-join the room.

Only if Bob removes the Charlie (WA) puppet from the Matrix room, does Charlie get removed from the group on WhatsApp.

Could it / should it (with an option?) be the case that if Alice performs one of the above actions - especially kicking - that the bridge should perform that action through an available bridged account?

I recognise that the power levels in the Matrix room do not match that of WhatsApp (and not all users in the room are bridged). Our primary use case is having a series of Matrix users talking through a relaybot to WhatsApp (and other networks), thus there will really only be one Matrix user in the room with a bridged WA account (the relaybot).

tulir commented 2 years ago

That's a lot of words for a simple "moderation actions should be bridged through the relaybot" feature request :P

anoadragon453 commented 2 years ago

But now you have reproduction steps! Reproduction steps!!1