mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Don't double-wrap error
This commit is contained in:
parent
858b7c5e6f
commit
0f7e897a0c
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ func JoinRoomByIDOrAlias(
|
|||
defer close(done)
|
||||
rsAPI.PerformJoin(req.Context(), &joinReq, &joinRes)
|
||||
if joinRes.Error != nil {
|
||||
joinRes.Error.Code = roomserverAPI.PerformErrorNotAllowed
|
||||
joinRes.Error.RemoteCode = http.StatusForbidden
|
||||
done <- joinRes.Error.JSONResponse()
|
||||
} else {
|
||||
done <- util.JSONResponse{
|
||||
|
|
Loading…
Reference in a new issue