Merge pull request #1914 from hydralauncher/fix/friend-request-endpoint

fix: update API endpoint for deleting friend requests in useUserDetai…
This commit is contained in:
Moyase
2026-01-03 22:08:45 +02:00
committed by GitHub

View File

@@ -111,7 +111,7 @@ export function useUserDetails() {
);
const undoFriendship = (userId: string) =>
window.electron.hydraApi.delete(`/profile/friends/${userId}`);
window.electron.hydraApi.delete(`/profile/friend-requests/${userId}`);
const blockUser = (userId: string) =>
window.electron.hydraApi.post(`/users/${userId}/block`);