mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-14 09:33:09 -06:00
Fix alias deletion
This commit is contained in:
parent
74a65e65b7
commit
29cd66fd23
|
|
@ -236,8 +236,8 @@ func RemoveLocalAlias(
|
||||||
validRoomID, err := spec.NewRoomID(roomIDRes.RoomID)
|
validRoomID, err := spec.NewRoomID(roomIDRes.RoomID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusBadRequest,
|
Code: http.StatusNotFound,
|
||||||
JSON: spec.BadJSON("The roomID is invalid."),
|
JSON: spec.NotFound("The alias does not exist."),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
deviceSenderID, err := rsAPI.QuerySenderIDForUser(req.Context(), *validRoomID, *userID)
|
deviceSenderID, err := rsAPI.QuerySenderIDForUser(req.Context(), *validRoomID, *userID)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue