🐛 Chat related two bug fixes

This commit is contained in:
2025-07-21 17:07:08 +08:00
parent 9ecd43ada8
commit f0e16837d6
2 changed files with 9 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ public class RealtimeCallController(
IConfiguration configuration,
AppDatabase db,
ChatService cs,
ChatRoomService crs,
IRealtimeService realtime
) : ControllerBase
{
@@ -64,6 +65,7 @@ public class RealtimeCallController(
.Include(c => c.Sender)
.FirstOrDefaultAsync();
if (ongoingCall is null) return NotFound();
ongoingCall.Sender = await crs.LoadMemberAccount(ongoingCall.Sender);
return Ok(ongoingCall);
}