mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
stream_list: Add folder ids to StreamListSection object.
Followup to https://github.com/zulip/zulip/pull/35075#discussion_r2232041259
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user