💄 Open/close ChatPanel on click

This commit is contained in:
2024-06-09 09:43:46 +02:00
parent d566a4927f
commit 9baa7f290a
3 changed files with 63 additions and 26 deletions

View File

@@ -306,6 +306,9 @@ pub fn Space(id: SpaceId) -> Element {
let on_selected_conversation = move |room_id: RoomId| {
trace!("");
STORE.write().on_selected_room(room_id.clone());
selected_room_id.set(Some(room_id));
};
@@ -380,6 +383,10 @@ pub fn HomeSpace() -> Element {
});
let on_selected_conversation = move |room_id: RoomId| {
trace!("");
STORE.write().on_selected_room(room_id.clone());
selected_room_id.set(Some(room_id));
};