matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.67k stars 664 forks source link

M_ROOM_IN_USE is not used #1971

Closed nivekuil closed 3 years ago

nivekuil commented 3 years ago

Dendrite doesn't return the error code, only a string. How synapse does it: https://github.com/matrix-org/synapse/blob/d0b294ad974c05621426369a00be6bf05c4af997/synapse/handlers/room.py#L660

mx-puppet-bridge needs this error code https://github.com/Sorunome/mx-puppet-bridge/blob/b85e37f6e7f4848442aa5901d7df869bf33fa3db/src/roomsyncroniser.ts#L286

neilalexander commented 3 years ago

Fixed by #1972, thanks for contributing it!