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 };