mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-11 14:23:39 +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)
|
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
|
joinRes.Error.RemoteCode = http.StatusForbidden
|
||||||
done <- joinRes.Error.JSONResponse()
|
done <- joinRes.Error.JSONResponse()
|
||||||
} else {
|
} else {
|
||||||
done <- util.JSONResponse{
|
done <- util.JSONResponse{
|
||||||
|
|
Loading…
Reference in a new issue