Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
channel_folders: Use a set for get_all_folder_ids.
Evy Kassirer8a9a3a1c7452
diff --git a/web/src/channel_folders.ts b/web/src/channel_folders.tsindex ce54806e617..0351a4e0010 100644--- a/web/src/channel_folders.ts+++ b/web/src/channel_folders.ts@@ -38,8 +38,8 @@ export function get_channel_folders(include_archived = false): ChannelFolder[] {/* TODO/channel-folders: Remove when tests are restored *//* istanbul ignore next */-export function get_all_folder_ids(): number[] {- return [...channel_folder_by_id_dict.keys()];+export function get_all_folder_ids(): Set<number> {+ return new Set(channel_folder_by_id_dict.keys());}export function is_valid_folder_id(folder_id: number): boolean {