Skip to content

Comments

Add tests for room creators being able to join v12 room that everyone has left#843

Draft
MadLittleMods wants to merge 1 commit intomainfrom
madlittlemods/v12-room-creator-rejoin-dead-room
Draft

Add tests for room creators being able to join v12 room that everyone has left#843
MadLittleMods wants to merge 1 commit intomainfrom
madlittlemods/v12-room-creator-rejoin-dead-room

Conversation

@MadLittleMods
Copy link
Collaborator

@MadLittleMods MadLittleMods commented Feb 12, 2026

Add tests for room creators being able to join v12 room that everyone has left

Spawning from discussion with @ara4n where we both thought this kind of thing should work.

Both tests fail with Synapse:

COMPLEMENT_DIR=../complement ./scripts-dev/complement.sh -p 1 ./tests -run 'TestMSC4289PrivilegedRoomCreators$'

POST http://127.0.0.1:33116/_matrix/client/v3/join/{roomId} -> 404 Not Found with {"errcode":"M_UNKNOWN","error":"Can't join remote room because no servers that are in the room have been provided."}

Pull Request Checklist

@kegsay
Copy link
Member

kegsay commented Feb 16, 2026

Presumably v12 is special because historically Synapse would use the domain in the room ID as a last-ditch server to join via?

@@ -52,6 +52,26 @@ func TestMSC4289PrivilegedRoomCreators(t *testing.T) {
)
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably v12 is special because historically Synapse would use the domain in the room ID as a last-ditch server to join via?

-- @kegsay, #843 (comment)

I wouldn't expect this to work in other room versions (unless you backdate events to rollback state).

But for v12, the room creator has ultimate power to do whatever and so should be able to send a m.room.mebership to join again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants