Revert "Remove ChannelsAlpha flag"

This reverts commit 1c1151a0ed.
This commit is contained in:
Conrad Irwin 2024-01-10 11:52:33 -07:00
parent 8d1bca450f
commit 61a9a3a274
4 changed files with 118 additions and 98 deletions

View file

@ -12,6 +12,7 @@ use std::{rc::Rc, sync::Arc};
use call::{report_call_event_for_room, ActiveCall, Room};
pub use collab_panel::CollabPanel;
pub use collab_titlebar_item::CollabTitlebarItem;
use feature_flags::{ChannelsAlpha, FeatureFlagAppExt};
use gpui::{
actions, point, AppContext, GlobalPixels, Pixels, PlatformDisplay, Size, Task, WindowBounds,
WindowKind, WindowOptions,
@ -158,3 +159,7 @@ fn notification_window_options(
// .with_style(container)
// .into_any()
// }
fn is_channels_feature_enabled(cx: &gpui::WindowContext<'_>) -> bool {
cx.is_staff() || cx.has_flag::<ChannelsAlpha>()
}