Fix alias deletion

This commit is contained in:
Devon Hudson 2023-06-14 12:10:53 +01:00
parent 74a65e65b7
commit 29cd66fd23
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -236,8 +236,8 @@ func RemoveLocalAlias(
validRoomID, err := spec.NewRoomID(roomIDRes.RoomID)
if err != nil {
return util.JSONResponse{
Code: http.StatusBadRequest,
JSON: spec.BadJSON("The roomID is invalid."),
Code: http.StatusNotFound,
JSON: spec.NotFound("The alias does not exist."),
}
}
deviceSenderID, err := rsAPI.QuerySenderIDForUser(req.Context(), *validRoomID, *userID)