stream_list: Add folder ids to StreamListSection object.

Followup to
https://github.com/zulip/zulip/pull/35075#discussion_r2232041259
This commit is contained in:
Evy Kassirer
2025-08-07 20:05:07 -07:00
committed by Tim Abbott
parent 8817284f7a
commit a644874e76
3 changed files with 9 additions and 3 deletions

View File

@@ -284,10 +284,10 @@ export function rewire_stream_list_section_container_html(
}
function get_section_channel_plus_icon_url(section: StreamListSection): string | undefined {
if (section.id === "normal-streams") {
if (section.folder_id !== null) {
return `#channels/folders/${section.folder_id}/new`;
} else if (section.id === "normal-streams") {
return "#channels/new";
} else if (section.id !== "pinned-streams") {
return `#channels/folders/${section.id}/new`;
}
return undefined;
}