From 3aec6e23b2060934d2c5df83aa4855cd8b176487 Mon Sep 17 00:00:00 2001 From: Cody Larkin Date: Sat, 4 Apr 2026 16:35:23 -0400 Subject: [PATCH] fixeded the hardcoded values AGAIN --- RelayServer/Endpoints/RtcEndpoints.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/RelayServer/Endpoints/RtcEndpoints.cs b/RelayServer/Endpoints/RtcEndpoints.cs index ab4ebb1..0d2b5ec 100644 --- a/RelayServer/Endpoints/RtcEndpoints.cs +++ b/RelayServer/Endpoints/RtcEndpoints.cs @@ -47,15 +47,17 @@ public static class RtcEndpoints }); // Store a new SDP answer for the specified channel call. - app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) => + app.MapPost("/api/rtc/answer", async (RtcOffer request, RtcCallService rtcCallService) => { - await rtcCallService.WriteAnswerAsync( - request.ChannelId, - new RtcSessionDescription - { - Type = "answer", - Sdp = request.Sdp - }); + await rtcCallService.WriteAnswerAsync(request.ChannelId, request.SessionDescription); + //DON'T FUCKING HARDCODE STRINGS INTO API REQUESTS + // await rtcCallService.WriteAnswerAsync( + // request.ChannelId, + // new RtcSessionDescription + // { + // Type = "answer", + // Sdp = request.Sdp + // }); RtcNotificationService.Broadcast(new RtcNotificationMessage {