element-hq / element-hq/synapse

Accepting invites doesn't use the other `server_name`s supplied to `/join`

Open
#11,254 0 comments 0 reactions 0 assignees View on GitHub
A-Invite S-Major T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#11254](https://github.com/matrix-org/synapse/issues/11254).

---

### Description

A bot of mine was having issues joining a room so a script was used to try and get it to join manually. That script supplies multiple server names to `/join` in hopes of getting the join to work successfully.

However, if the invite came from a server that isn't the first server listed via `server_name`, the join fails with:

```
{
errcode: 'M_NOT_FOUND',
error: 'Could not room_version for !dGXMuCIRSiJvoRkhcq:t2l.io'
}
```

### Steps to reproduce

- Be invited to a room
- Join using `server_name=not.the.inviting.server&server_name=inviting.server`

### Version information

- **Homeserver**: t2bot.io

If not matrix.org:

- **Version**: 1.46.0

- **Install method**: pip

- **Platform**: Dedicated host

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.