mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 22:02:46 +00:00
Fix return codes
This commit is contained in:
parent
831f3b9307
commit
35bc2e98e6
2 changed files with 2 additions and 3 deletions
|
@ -81,7 +81,6 @@ func JoinRoomByIDOrAlias(
|
|||
defer close(done)
|
||||
rsAPI.PerformJoin(req.Context(), &joinReq, &joinRes)
|
||||
if joinRes.Error != nil {
|
||||
joinRes.Error.RemoteCode = http.StatusForbidden
|
||||
done <- joinRes.Error.JSONResponse()
|
||||
} else {
|
||||
done <- util.JSONResponse{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue