From 699870aaba600a9c3e10df4ac18a368073644b8a Mon Sep 17 00:00:00 2001 From: Parker Atkins Date: Tue, 2 Apr 2024 00:03:48 -0700 Subject: [PATCH] Adjust unreadMessageCount in communication handler --- src/ECER.Managers.Registry/CommunicationHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ECER.Managers.Registry/CommunicationHandler.cs b/src/ECER.Managers.Registry/CommunicationHandler.cs index 2c5c66e99..a3143255e 100644 --- a/src/ECER.Managers.Registry/CommunicationHandler.cs +++ b/src/ECER.Managers.Registry/CommunicationHandler.cs @@ -20,8 +20,8 @@ public static async Task Handle(Contract.Communicat ByRegistrantId = query.ByRegistrantId, ByStatus = statuses, }); - - var unreadCount = communications.Where(c => c.Acknowledged).ToList().Count; // it does not support Any + + var unreadCount = communications.Where(c => !c.Acknowledged).ToList().Count; // it does not support Any var hasUnread = unreadCount > 0; var communicationsStatus = new Contract.Communications.CommunicationsStatus() { HasUnread = hasUnread, Count = unreadCount };