Show EmptyRoomListView when low priority filter matches zero rooms (#30122)

* Implement empty section for low prio filter

* Write test
This commit is contained in:
R Midhun Suresh
2025-06-11 17:06:29 +05:30
committed by GitHub
parent ed9b480338
commit 451a99d49e
4 changed files with 35 additions and 0 deletions

View File

@@ -76,6 +76,14 @@ export function EmptyRoomList({ vm }: EmptyRoomListProps): JSX.Element | undefin
filter={vm.activePrimaryFilter}
/>
);
case FilterKey.LowPriorityFilter:
return (
<ActionPlaceholder
title={_t("room_list|empty|no_lowpriority")}
action={_t("room_list|empty|show_activity")}
filter={vm.activePrimaryFilter}
/>
);
default:
return undefined;
}

View File

@@ -2122,6 +2122,7 @@
"no_favourites": "You don't have favourite chat yet",
"no_favourites_description": "You can add a chat to your favourites in the chat settings",
"no_invites": "You don't have any unread invites",
"no_lowpriority": "You don't have any low priority rooms",
"no_mentions": "You don't have any unread mentions",
"no_people": "You dont have direct chats with anyone yet",
"no_people_description": "You can deselect filters in order to see your other chats",