mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
CS API /join should really only return 403
This commit is contained in:
parent
8ad188109b
commit
858b7c5e6f
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ func JoinRoomByIDOrAlias(
|
||||||
defer close(done)
|
defer close(done)
|
||||||
rsAPI.PerformJoin(req.Context(), &joinReq, &joinRes)
|
rsAPI.PerformJoin(req.Context(), &joinReq, &joinRes)
|
||||||
if joinRes.Error != nil {
|
if joinRes.Error != nil {
|
||||||
|
joinRes.Error.Code = roomserverAPI.PerformErrorNotAllowed
|
||||||
done <- joinRes.Error.JSONResponse()
|
done <- joinRes.Error.JSONResponse()
|
||||||
} else {
|
} else {
|
||||||
done <- util.JSONResponse{
|
done <- util.JSONResponse{
|
||||||
|
|
Loading…
Reference in a new issue