added todos

This commit is contained in:
2026-04-02 13:51:04 -04:00
parent c193061fe3
commit cb59cc4409
2 changed files with 3 additions and 0 deletions

View File

@@ -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();
});

View File

@@ -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<RtcActiveCall, RtcActiveCall>(activeCall);