🐛 Fix chat notification and listing members

This commit is contained in:
2025-05-30 23:02:55 +08:00
parent 472221302d
commit a0cd779f85
3 changed files with 13 additions and 26 deletions

View File

@ -19,6 +19,8 @@ public class ChatRoomService(AppDatabase db, ICacheService cache)
return cachedMembers;
var members = await db.ChatMembers
.Include(m => m.Account)
.ThenInclude(m => m.Profile)
.Where(m => m.ChatRoomId == roomId)
.Where(m => m.JoinedAt != null)
.Where(m => m.LeaveAt == null)