From cb59cc4409862f603e4cde222a307996ad4cd734 Mon Sep 17 00:00:00 2001 From: Cody Larkin Date: Thu, 2 Apr 2026 13:51:04 -0400 Subject: [PATCH] added todos --- RelayServer/Endpoints/RtcEndpoints.cs | 2 ++ RelayServer/Services/Rtc/RtcCallService.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/RelayServer/Endpoints/RtcEndpoints.cs b/RelayServer/Endpoints/RtcEndpoints.cs index 8990147..0a74fc3 100644 --- a/RelayServer/Endpoints/RtcEndpoints.cs +++ b/RelayServer/Endpoints/RtcEndpoints.cs @@ -27,6 +27,7 @@ public static class RtcEndpoints app.MapPost("/api/rtc/answer", async (RtcAnswer request, RtcCallService rtcCallService) => { await rtcCallService.WriteAnswerAsync(request.ChannelId, request.OfferUser, request.AnswerUser, request.Sdp); + //TODO: Add call to clients already in call that a new answer has been made with answer details return Results.Ok(); }); @@ -45,6 +46,7 @@ public static class RtcEndpoints request.SdpMLineIndex, request.Direction ); + //TODO: Add call to clients already in call that a new ICE candidate has been made with ICE candidate details return Results.Ok(); }); diff --git a/RelayServer/Services/Rtc/RtcCallService.cs b/RelayServer/Services/Rtc/RtcCallService.cs index be10411..aa7aa28 100644 --- a/RelayServer/Services/Rtc/RtcCallService.cs +++ b/RelayServer/Services/Rtc/RtcCallService.cs @@ -140,6 +140,7 @@ public sealed class RtcCallService if (activeCall.OfferUser == username) { + //TODO: Fix to only make inactive if all users leave activeCall.IsActive = false; activeCall.UpdatedAt = DateTime.UtcNow; await _db.Merge(activeCall);