diff --git a/DysonNetwork.Sphere/Chat/ChatRoomService.cs b/DysonNetwork.Sphere/Chat/ChatRoomService.cs index b604542..516864a 100644 --- a/DysonNetwork.Sphere/Chat/ChatRoomService.cs +++ b/DysonNetwork.Sphere/Chat/ChatRoomService.cs @@ -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(); diff --git a/DysonNetwork.Sphere/Chat/RealtimeCallController.cs b/DysonNetwork.Sphere/Chat/RealtimeCallController.cs index f460537..d06997e 100644 --- a/DysonNetwork.Sphere/Chat/RealtimeCallController.cs +++ b/DysonNetwork.Sphere/Chat/RealtimeCallController.cs @@ -105,7 +105,7 @@ public class RealtimeCallController( if (realtime is LivekitRealtimeService livekitService) { var roomParticipants = await livekitService.GetRoomParticipantsAsync(ongoingCall.SessionId); - participants = new List(); + participants = []; foreach (var p in roomParticipants) {