From 709528b82fe3f6b310673509369964d2ec53ded6 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Tue, 13 Jun 2023 09:48:36 +0100 Subject: [PATCH] Fix delete alias bug --- clientapi/routing/directory.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientapi/routing/directory.go b/clientapi/routing/directory.go index f01e24eca..621df0cca 100644 --- a/clientapi/routing/directory.go +++ b/clientapi/routing/directory.go @@ -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."), } }