mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge

Home Page:https://maunium.net/go/mautrix-whatsapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bridge joins to whatsapp as invites using relaybot user

uumas opened this issue · comments

I have a room bridged to a whatsapp group with a relaybot. It works fine for users who are not logged into the bridge, but for users who are logged in and join the room in matrix, it gives the error "Your message may not have been bridged: failed to get group members: you're not participating in that group". I would except the bridge to either bridge their messages using the relaybot too or invite their whatsapp user to the whatsapp group.

This works correctly, if another user who is logged in to the bridge and can invite others to the whatsapp group invites the new matrix-user, but not if the matrix user joins the (public) room themselves or if a non-logged in user or a user without permissions to invite to whatsapp group invites them to the matrix room. In these cases, the relaybot should invite the user on whatsapp-side, assuming it has permission in whatsapp to do so.

possibly a better idea: Use the relaybot to get the group invite link on whatsapp and join the user with that