stream_data: Remove is_stream_muted_by_name to favor stream ids.

This commit is contained in:
evykassirer
2024-08-03 12:15:23 -07:00
committed by Tim Abbott
parent fd5112fbb2
commit 90cced31af
4 changed files with 6 additions and 24 deletions

View File

@@ -462,15 +462,6 @@ export function is_muted(stream_id: number): boolean {
return sub.is_muted;
}
export function is_stream_muted_by_name(stream_name: string): boolean {
const sub = get_sub(stream_name);
// Return true for undefined streams
if (sub === undefined) {
return true;
}
return sub.is_muted;
}
export function is_new_stream_announcements_stream_muted(): boolean {
return is_muted(realm.realm_new_stream_announcements_stream_id);
}