feat: new greeter panel

This commit is contained in:
2026-10-17 17:04:50 +07:00
parent aa86fef16f
commit deed021332
6 changed files with 533 additions and 162 deletions
+6 -1
View File
@@ -24,7 +24,12 @@ use super::search::MessageHit;
use crate::dialogs::{profile, screening};
/// Open a room in the dock, screening new requests when enabled.
fn open_room(room: &Entity<Room>, dock: &WeakEntity<DockArea>, window: &mut Window, cx: &mut App) {
pub(crate) fn open_room(
room: &Entity<Room>,
dock: &WeakEntity<DockArea>,
window: &mut Window,
cx: &mut App,
) {
ui::dock::add_panel_to(
dock,
PanelHandle::new(chat_ui::init(room.downgrade(), window, cx)),