more TODOs

This commit is contained in:
2026-04-03 09:02:57 -04:00
parent 9a6fcfb6de
commit 701e30c31b
2 changed files with 3 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ public sealed class RtcCallService
/// </returns>
public async Task<RtcJoinResponse> JoinCallAsync(string channelId, string username)
{
//TODO: move active call creation logic to WriteOfferAsync Function
var activeCalls = await _db.Select<RtcActiveCall>("rtc_active_calls");
var activeCall = activeCalls.FirstOrDefault(x => x.ChannelId == channelId && x.IsActive);
@@ -62,7 +63,7 @@ public sealed class RtcCallService
}
var offers = await _db.Select<RtcOffer>("rtc_offers");
var offer = offers
var offer = offers //TODO: Remove offer creation in C#
.Where(x => x.ChannelId == channelId)
.OrderByDescending(x => x.CreatedAt)
.FirstOrDefault();