🐛 Fix chat notification and listing members
This commit is contained in:
@ -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)
|
||||
|
@ -98,7 +98,7 @@ public class ChatService(
|
||||
});
|
||||
|
||||
// Only add accounts that aren't null
|
||||
if (member.AccountId != sender.AccountId)
|
||||
if (member.Account.Id != sender.AccountId)
|
||||
accountsToNotify.Add(member.Account);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user