wip: refactor

This commit is contained in:
reya
2024-12-31 09:34:33 +07:00
parent 5b78e6ad12
commit b2f2491889
14 changed files with 205 additions and 120 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ use crate::{
get_client,
states::{chat::Room, metadata::MetadataRegistry, signal::SignalRegistry},
utils::{ago, get_room_id, show_npub},
views::app::AddPanel,
views::app::{AddPanel, PanelKind},
};
pub struct InboxItem {
@@ -73,7 +73,7 @@ impl InboxItem {
let room = Arc::new(Room::new(&self.event, cx));
cx.dispatch_action(Box::new(AddPanel {
room,
panel: PanelKind::Room(room),
position: coop_ui::dock::DockPlacement::Center,
}))
}