feat: fix set name

This commit is contained in:
MingLiang Wang 2023-01-10 13:13:31 +08:00
parent 44e20cec3c
commit 8c1636f1a2

View File

@ -198,11 +198,11 @@ export class DataCenter {
assert(workspace?.room, 'No workspace to set meta');
const update: Partial<WorkspaceMeta> = {};
if (name) {
workspace.doc.meta.setName(name);
workspace.meta.setName(name);
update.name = name;
}
if (avatar) {
workspace.doc.meta.setAvatar(avatar);
workspace.meta.setAvatar(avatar);
update.avatar = avatar;
}
// may run for change workspace meta