🐛 Fix realtime call somethings account missing profile

This commit is contained in:
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();