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

"You already have a private chat portal with me at" points to a room I cannot join #529

Closed Notmarrco closed 2 years ago

Notmarrco commented 2 years ago

Hi, When starting a PM to some WA users, I get the message "You already have a private chat portal with me at xxx", but when I follow the link, I get the following error : eventauth: "@marc:conversation.chbx.fr" is not allowed to change their membership from "leave" to "join" as join rule "invite" forbids it. How come the bridge detects a room that I'm not part of ? Btw I'm using dendrite 0.8.9. Thank you

jostreff commented 1 year ago

Hi, currently I'm experiencing the described with 2 of bridge bots which I want to install on my dendrite-0.10.8 home server.

Bridges are logging something like following: [Nov 30, 2022 16:03:16] [Matrix/DEBUG] Failed to join room !NlumPAgUuZeRP54s:matrix.ostreff.info as @whatsappbot:matrix.ostreff.info with invite from @jostreff:matrix.ostreff.info: failed to POST /_matrix/client/v3/rooms/!NlumPAgUuZeRP54s:matrix.ostreff.info/join: M_FORBIDDEN (HTTP 403): InputRoomEvents auth failed: InputRoomEventsResponse: eventauth: "@whatsappbot:matrix.ostreff.info" is not allowed to change their membership from "leave" to "join" as join rule "invite" forbids it

How to reproduce the problem - just install it https://github.com/mautrix/whatsapp following the instructions described here https://docs.mau.fi/bridges/go/setup.html?bridge=whatsapp On first attempt to connect to bridgebot it will crash with error above.