mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat: add default head img
This commit is contained in:
@@ -173,6 +173,12 @@ export class DataCenter {
|
||||
w.doc.meta.setAvatar(avatar);
|
||||
update.avatar = avatar;
|
||||
}
|
||||
// may run for change workspace meta
|
||||
const workspaceInfo = this.workspaces.getWorkspace(w.room);
|
||||
assert(workspaceInfo, 'Workspace not found');
|
||||
const provider = this.providerMap.get(workspaceInfo.provider);
|
||||
provider?.updateWorkspaceMeta(w.room, update);
|
||||
// update workspace list directly
|
||||
this.workspaces.updateWorkspaceInfo(w.room, update);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user