feat: add default head img

This commit is contained in:
MingLiang Wang
2023-01-08 18:42:35 +08:00
parent 512c0a791e
commit 375b5197da
5 changed files with 96 additions and 6 deletions

View File

@@ -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);
}