Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

unable to remove room from space #12428

Closed
markiceman opened this issue Apr 9, 2022 · 2 comments
Closed

unable to remove room from space #12428

markiceman opened this issue Apr 9, 2022 · 2 comments

Comments

@markiceman
Copy link

markiceman commented Apr 9, 2022

Synapse: 1.55.0
Element: 1.10.8

I have Space (version 6) with 4 rooms.

I upgraded one room from version 6 to version 9.

And now:

  • I cannot remove this room from space
  • i cannost join to this room through link from space

Interesting:

  • link from space in Mobile App (android) is functional, but this join to archived room version 6.

What now?

@squahtx
Copy link
Contributor

squahtx commented Apr 11, 2022

This is a bug in Element Web. You can either try removing the room from the space using a different client or use curl to remove the room:

curl $'https://<homeserver>/_matrix/client/r0/rooms/<space id>/state/m.space.child/<room id>' \
  -X 'PUT' -H "Authorization: Bearer syt_<your access token>" -H "Content-Type: application/json" --data "{}"

Your access token can be found in Element Web under Settings > Help & About > Advanced > Access Token.
"!" in the space and room ids should be replaced with "\u0021".
eg.

curl $'https://matrix.org/_matrix/client/r0/rooms/\u0021fhuUBbrIMGHGaPSbDk%3Amatrix.org/state/m.space.child/\u0021pLQLHMyNhDXQNFeIGr%3Amatrix.org' \
  -X 'PUT' -H "Authorization: Bearer syt_<your access token>" -H "Content-Type: application/json" --data "{}"

@squahtx
Copy link
Contributor

squahtx commented Apr 11, 2022

@squahtx squahtx closed this as completed Apr 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants