mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
feat: send email to owner after member accepted invitation / leave workspace (#4152)
Co-authored-by: DarkSky <darksky2048@gmail.com>
This commit is contained in:
@@ -12,10 +12,13 @@ export function useLeaveWorkspace() {
|
||||
});
|
||||
|
||||
return useCallback(
|
||||
async (workspaceId: string) => {
|
||||
async (workspaceId: string, workspaceName: string) => {
|
||||
deleteWorkspaceMeta(workspaceId);
|
||||
|
||||
await leaveWorkspace({
|
||||
workspaceId,
|
||||
workspaceName,
|
||||
sendLeaveMail: true,
|
||||
});
|
||||
},
|
||||
[deleteWorkspaceMeta, leaveWorkspace]
|
||||
|
||||
Reference in New Issue
Block a user