🐛 Fix realtime call somethings account missing profile
This commit is contained in:
parent
ed2e9571ab
commit
1024721e0e
@ -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();
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user