feat: leave workspace api (#4942)

* feat: leave workpspace event

* feat: add leave workspace event

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
This commit is contained in:
Zack
2024-03-29 17:53:59 +09:00
committed by GitHub
parent 490cb48354
commit 3f4a409364
10 changed files with 108 additions and 20 deletions

View File

@ -234,6 +234,10 @@ pub trait UserCloudService: Send + Sync + 'static {
workspace_id: &str,
objects: Vec<UserCollabParams>,
) -> FutureResult<(), FlowyError>;
fn leave_workspace(&self, workspace_id: &str) -> FutureResult<(), FlowyError> {
FutureResult::new(async { Ok(()) })
}
}
pub type UserUpdateReceiver = tokio::sync::mpsc::Receiver<UserUpdate>;