Fix delete alias bug

This commit is contained in:
Devon Hudson 2023-06-13 09:48:36 +01:00
parent ba08f41a27
commit 709528b82f
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -236,8 +236,8 @@ func RemoveLocalAlias(
deviceSenderID, err := rsAPI.QuerySenderIDForUser(req.Context(), roomIDRes.RoomID, *userID)
if err != nil {
return util.JSONResponse{
Code: http.StatusInternalServerError,
JSON: spec.InternalServerError{Err: "Could not find SenderID for this device"},
Code: http.StatusNotFound,
JSON: spec.NotFound("The alias does not exist."),
}
}