From d3a6102541c9df6c303e282c02fe2d5b67c923b4 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Wed, 10 Apr 2024 11:32:29 -0300 Subject: [PATCH] fix: puts the rule closer to the web --- app/views/RoomsListView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/RoomsListView/index.tsx b/app/views/RoomsListView/index.tsx index fb69dd106..77b5fd3aa 100644 --- a/app/views/RoomsListView/index.tsx +++ b/app/views/RoomsListView/index.tsx @@ -123,7 +123,7 @@ const OMNICHANNEL_HEADER_IN_PROGRESS = 'Open_Livechats'; const OMNICHANNEL_HEADER_ON_HOLD = 'On_hold_Livechats'; const QUERY_SIZE = 20; -const filterIsUnread = (s: TSubscriptionModel) => (s.unread > 0 || s.tunread?.length > 0 || s.alert) && !s.hideUnreadStatus; +const filterIsUnread = (s: TSubscriptionModel) => (s.alert || s.unread) && !s.hideUnreadStatus; const filterIsFavorite = (s: TSubscriptionModel) => s.f; const filterIsOmnichannel = (s: TSubscriptionModel) => s.t === 'l'; const filterIsTeam = (s: TSubscriptionModel) => s.teamMain;