mirror of
https://github.com/youwen5/iamb.git
synced 2025-08-04 19:48:28 -07:00
Support adding rooms to spaces (#407)
This commit is contained in:
parent
7dd09e32a8
commit
3e45ca3d2c
7 changed files with 366 additions and 5 deletions
|
@ -76,6 +76,7 @@ use crate::base::{
|
|||
SortFieldRoom,
|
||||
SortFieldUser,
|
||||
SortOrder,
|
||||
SpaceAction,
|
||||
UnreadInfo,
|
||||
};
|
||||
|
||||
|
@ -360,6 +361,19 @@ impl IambWindow {
|
|||
}
|
||||
}
|
||||
|
||||
pub async fn space_command(
|
||||
&mut self,
|
||||
act: SpaceAction,
|
||||
ctx: ProgramContext,
|
||||
store: &mut ProgramStore,
|
||||
) -> IambResult<EditInfo> {
|
||||
if let IambWindow::Room(w) = self {
|
||||
w.space_command(act, ctx, store).await
|
||||
} else {
|
||||
return Err(IambError::NoSelectedRoom.into());
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn room_command(
|
||||
&mut self,
|
||||
act: RoomAction,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue