🐛 Fix realtime call somethings account missing profile

This commit is contained in:
LittleSheep 2025-05-31 02:52:19 +08:00
parent ed2e9571ab
commit 1024721e0e
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,8 @@ public class ChatRoomService(AppDatabase db, ICacheService cache)
if (member is not null) return member;
member = await db.ChatMembers
.Include(m => m.Account)
.ThenInclude(m => m.Profile)
.Where(m => m.AccountId == accountId && m.ChatRoomId == chatRoomId)
.FirstOrDefaultAsync();

View File

@ -105,7 +105,7 @@ public class RealtimeCallController(
if (realtime is LivekitRealtimeService livekitService)
{
var roomParticipants = await livekitService.GetRoomParticipantsAsync(ongoingCall.SessionId);
participants = new List<CallParticipant>();
participants = [];
foreach (var p in roomParticipants)
{